mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
kiwi's gateway uses the flag secure instead of tls
This commit is contained in:
parent
b7f66fb1de
commit
2d6ddf7eb9
1 changed files with 2 additions and 1 deletions
|
|
@ -58,7 +58,8 @@ func webircHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
|
||||||
key = x
|
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
|
// 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()) {
|
if client.flags[TLS] || utils.AddrIsLocal(client.socket.conn.RemoteAddr()) {
|
||||||
secure = true
|
secure = true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue