Use IPv6 addresses
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
abbcbbc3b1
commit
cf4833573a
|
@ -338,7 +338,7 @@ class Squirrel(Hazelnut):
|
||||||
"""
|
"""
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self.socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
self.socket = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
|
||||||
self.socket.bind((self.address, self.port))
|
self.socket.bind((self.address, self.port))
|
||||||
print(f"Listening on {self.address}:{self.port}")
|
print(f"Listening on {self.address}:{self.port}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue