From 39194f0032f0b22b363bce17c804e642ad745a33 Mon Sep 17 00:00:00 2001 From: Atsushi Watanabe Date: Mon, 20 Nov 2023 09:51:22 +0900 Subject: [PATCH] tunnel: fix loop variable capture --- tunnel/tunnel.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tunnel/tunnel.go b/tunnel/tunnel.go index e392f8d0..a5526f86 100644 --- a/tunnel/tunnel.go +++ b/tunnel/tunnel.go @@ -103,6 +103,7 @@ func (t *tunnel) notify(msg *mqtt.Message) { return } for _, srv := range n.Services { + srv := srv if d, ok := t.dialerMap[srv]; ok { go func() { opts := append(