3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 03:29:28 +01:00

relay: limit hosts to 63 chars, not 64

This commit is contained in:
James Lu 2016-08-03 00:21:30 -07:00
parent 5e1cb67dcd
commit 66067c272f

View File

@ -187,7 +187,7 @@ def normalizeHost(irc, host):
if irc.protoname == 'unreal': if irc.protoname == 'unreal':
# UnrealIRCd doesn't allow slashes in hostnames # UnrealIRCd doesn't allow slashes in hostnames
host = host.replace('/', '.') host = host.replace('/', '.')
return host[:64] # Limited to 64 chars return host[:63] # Limit hosts to 63 chars for best compatibility
def loadDB(): def loadDB():
"""Loads the relay database, creating a new one if this fails.""" """Loads the relay database, creating a new one if this fails."""