downstream: fix setting tls=0 in bouncer-networks
The old code resulted in URLs like "irc+insecure://0".
This commit is contained in:
parent
23f94a5c6e
commit
d37f946e83
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user