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:
parent
5e1cb67dcd
commit
66067c272f
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user