Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit 27552fa

Browse files
author
mpgn
committed
Update fix for ipv6 local link adresss #470
1 parent eec9dfe commit 27552fa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cme/connection.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ def gethost_addrinfo(hostname):
2222
for res in socket.getaddrinfo(hostname, None, socket.AF_INET,
2323
socket.SOCK_DGRAM, socket.IPPROTO_IP, socket.AI_CANONNAME):
2424
af, socktype, proto, canonname, sa = res
25-
26-
return sa[0]
25+
if canonname == '':
26+
return sa[0]
27+
return canonname
2728

2829
def requires_admin(func):
2930
def _decorator(self, *args, **kwargs):

0 commit comments

Comments
 (0)