From 2d6ddf7eb9415450e6c27be482b047e17c946026 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Wed, 31 Jan 2018 22:01:13 -0500 Subject: [PATCH] kiwi's gateway uses the flag `secure` instead of `tls` --- irc/gateways.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/irc/gateways.go b/irc/gateways.go index 7bc1ea45..7eb84161 100644 --- a/irc/gateways.go +++ b/irc/gateways.go @@ -58,7 +58,8 @@ func webircHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool { key = x } - if strings.ToLower(key) == "tls" { + lkey := strings.ToLower(key) + if lkey == "tls" || lkey == "secure" { // only accept "tls" flag if the gateway's connection to us is secure as well if client.flags[TLS] || utils.AddrIsLocal(client.socket.conn.RemoteAddr()) { secure = true