remove useless test
This commit is contained in:
parent
3cc708516e
commit
a764cb5384
|
@ -1232,8 +1232,6 @@ class ConnectionHandlersBase:
|
|||
if obj.mtype == 'error':
|
||||
if not obj.msgtxt:
|
||||
obj.msgtxt = _('message')
|
||||
if not obj.msgtxt:
|
||||
return True
|
||||
self.dispatch_error_message(obj.stanza, obj.msgtxt,
|
||||
obj.session, obj.fjid, obj.timestamp)
|
||||
return True
|
||||
|
|
|
@ -393,7 +393,7 @@ class ConnectionSocks5Bytestream(ConnectionBytestream):
|
|||
my_ips = [self.peerhost[0]] # The ip we're connected to server with
|
||||
# all IPs from local DNS
|
||||
for addr in socket.getaddrinfo(socket.gethostname(), None):
|
||||
if not addr[4][0] in my_ips and not addr[4][0].startswith('127'):
|
||||
if not addr[4][0] in my_ips and not addr[4][0].startswith('127') and not addr[4][0] == '::1':
|
||||
my_ips.append(addr[4][0])
|
||||
|
||||
sender = file_props.sender
|
||||
|
|
Loading…
Reference in New Issue