Fix listener logic
This commit is contained in:
parent
b5fce64619
commit
0c5c58e126
|
@ -70,7 +70,7 @@ def main():
|
||||||
listener_ipv4 = None
|
listener_ipv4 = None
|
||||||
listener_ipv6 = None
|
listener_ipv6 = None
|
||||||
|
|
||||||
if not shared.listen_for_connections:
|
if shared.listen_for_connections:
|
||||||
if socket.has_ipv6:
|
if socket.has_ipv6:
|
||||||
try:
|
try:
|
||||||
listener_ipv6 = Listener('', shared.listening_port, family=socket.AF_INET6)
|
listener_ipv6 = Listener('', shared.listening_port, family=socket.AF_INET6)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user