code quality fixed
This commit is contained in:
parent
6b62c50925
commit
f605a85aa4
|
@ -115,8 +115,8 @@ def encodeHost(host):
|
||||||
return '\xfd\x87\xd8\x7e\xeb\x43' + base64.b32decode(
|
return '\xfd\x87\xd8\x7e\xeb\x43' + base64.b32decode(
|
||||||
host.split(".")[0], True)
|
host.split(".")[0], True)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
return '\xfd\x87\xd8\x7e\xeb\x43' + base64.b32decode(
|
return '\xfd\x87\xd8\x7e\xeb\x43' + \
|
||||||
host.split(".")[0], True).decode('utf-8', 'ignore')
|
base64.b32decode(host.split(".")[0], True).decode('utf-8', 'ignore')
|
||||||
elif host.find(':') == -1:
|
elif host.find(':') == -1:
|
||||||
try:
|
try:
|
||||||
return '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xFF\xFF' + \
|
return '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xFF\xFF' + \
|
||||||
|
|
Reference in New Issue
Block a user