downstream: fix setting tls=0 in bouncer-networks

The old code resulted in URLs like "irc+insecure://0".
This commit is contained in:
Simon Ser 2022-05-03 10:43:02 +02:00
parent 23f94a5c6e
commit d37f946e83

View File

@ -163,7 +163,7 @@ func networkAddrFromAttrs(attrs irc.Tags) string {
} }
if tlsStr := string(attrs["tls"]); tlsStr == "0" { if tlsStr := string(attrs["tls"]); tlsStr == "0" {
addr = "irc+insecure://" + tlsStr addr = "irc+insecure://" + addr
} }
return addr return addr