Punycode unicode domains

This commit is contained in:
Juhani Krekelä 2020-01-05 15:30:45 +02:00
parent 89826bc90a
commit 7182adaf0c
1 changed files with 3 additions and 0 deletions

View File

@ -249,6 +249,9 @@ def main():
usage('client')
host, = fixed
# Support internationalized domain names
host = host.encode('idna').decode()
client_pubkey = b'client'
server_pubkey = client(client_pubkey, host, port)