From d37f946e830d71bb849d38b338e778d789a833f7 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 3 May 2022 10:43:02 +0200 Subject: [PATCH] downstream: fix setting tls=0 in bouncer-networks The old code resulted in URLs like "irc+insecure://0". --- downstream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/downstream.go b/downstream.go index 8e54a45..b1ce893 100644 --- a/downstream.go +++ b/downstream.go @@ -163,7 +163,7 @@ func networkAddrFromAttrs(attrs irc.Tags) string { } if tlsStr := string(attrs["tls"]); tlsStr == "0" { - addr = "irc+insecure://" + tlsStr + addr = "irc+insecure://" + addr } return addr