don't crash when we get wrong streamhost. Fixes #6983
This commit is contained in:
parent
08a584b8b6
commit
de54f52805
|
@ -597,6 +597,12 @@ class ConnectionSocks5Bytestream(ConnectionBytestream):
|
||||||
}
|
}
|
||||||
for attr in item.getAttrs():
|
for attr in item.getAttrs():
|
||||||
host_dict[attr] = item.getAttr(attr)
|
host_dict[attr] = item.getAttr(attr)
|
||||||
|
if 'host' not in host_dict:
|
||||||
|
continue
|
||||||
|
if 'jid' not in host_dict:
|
||||||
|
continue
|
||||||
|
if 'port' not in host_dict:
|
||||||
|
continue
|
||||||
streamhosts.append(host_dict)
|
streamhosts.append(host_dict)
|
||||||
if file_props is None:
|
if file_props is None:
|
||||||
if sid in self.files_props:
|
if sid in self.files_props:
|
||||||
|
|
Loading…
Reference in New Issue