fix crash when resolving dns hostname to IP (close #9)

This commit is contained in:
2016-05-09 16:43:07 +04:30
parent f29fcbeef3
commit 41a79b55e9

View File

@ -90,7 +90,7 @@ def main():
src_port = 0
src_ip = None
use_tcp = False
af = None
af = socket.AF_INET
hostname = 'wikipedia.org'
try: