mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #47341 from dwoz/inet_pton_fix
Fix python 3 support for inet_pton function
This commit is contained in:
commit
34e78ef564
@ -56,7 +56,7 @@ def inet_pton(address_family, ip_string):
|
||||
addr_size = ctypes.c_int(ctypes.sizeof(addr))
|
||||
|
||||
if WSAStringToAddressA(
|
||||
ip_string,
|
||||
ip_string.encode('ascii'),
|
||||
address_family,
|
||||
None,
|
||||
ctypes.byref(addr),
|
||||
|
Loading…
Reference in New Issue
Block a user