Commit 78942e3f authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[trac983] fixed solaris regression: socktype (and probably protocol) arguments

must be specified explicitly.
parent 8945eccc
......@@ -20,7 +20,8 @@ from isc.acl.dns import *
def get_sockaddr(address, port):
'''This is a simple shortcut wrapper for getaddrinfo'''
ai = socket.getaddrinfo(address, port, 0, 0, 0, socket.AI_NUMERICHOST)[0]
ai = socket.getaddrinfo(address, port, 0, socket.SOCK_DGRAM,
socket.IPPROTO_UDP, socket.AI_NUMERICHOST)[0]
return ai[4]
def get_acl(prefix):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment