mdns
xorrior 2017-06-09 23:28:42 -04:00
parent 5a530fede9
commit 37c72f0428
1 changed files with 1 additions and 1 deletions

View File

@ -608,7 +608,7 @@ def lhost():
return socket.inet_ntoa(fcntl.ioctl(
s.fileno(),
0x8915, # SIOCGIFADDR
struct.pack('256s', ifname[:15])
struct.pack('256s', str(ifname[:15]))
)[20:24])
except IOError as e:
return ""