diff --git a/transport/internet/dialer.go b/transport/internet/dialer.go index 29051a02..5dcf2586 100644 --- a/transport/internet/dialer.go +++ b/transport/internet/dialer.go @@ -33,7 +33,7 @@ func Dial(ctx context.Context, dest net.Destination) (Connection, error) { ctx = ContextWithStreamSettings(ctx, streamSettings) } - protocol = streamSettings.ProtocolName + protocol := streamSettings.ProtocolName dialer := transportDialerCache[protocol] if dialer == nil { return nil, newError(protocol, " dialer not registered").AtError()