connect via ipv6

This commit is contained in:
jkhsjdhjs 2023-07-16 23:38:37 +00:00
parent ef88dad4a8
commit 9de4990d69

View File

@ -39,7 +39,7 @@ r = "\x034"
g = "\x033"
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)