From 66067c272fe4a35ea3df429df2eba5ed219d558f Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 3 Aug 2016 00:21:30 -0700 Subject: [PATCH] relay: limit hosts to 63 chars, not 64 --- plugins/relay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/relay.py b/plugins/relay.py index 18f22b9..f50d5b4 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -187,7 +187,7 @@ def normalizeHost(irc, host): if irc.protoname == 'unreal': # UnrealIRCd doesn't allow slashes in hostnames host = host.replace('/', '.') - return host[:64] # Limited to 64 chars + return host[:63] # Limit hosts to 63 chars for best compatibility def loadDB(): """Loads the relay database, creating a new one if this fails."""