connect via ipv6
This commit is contained in:
1 parent
ef88dad4a8
commit
9de4990d69
1 file changed
+1
-1
@@ -39,7 +39,7 @@ r = "\x034"
|
|||||||
g = "\x033"
|
g = "\x033"
|
||||||
|
|
||||||
context = ssl.create_default_context()
|
context = ssl.create_default_context()
|
||||||
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
|
with socket.socket(socket.AF_INET6, socket.SOCK_STREAM) as sock:
|
||||||
irc = context.wrap_socket(sock, server_hostname=host)
|
irc = context.wrap_socket(sock, server_hostname=host)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user