diff --git a/ipapython/ipautil.py b/ipapython/ipautil.py index 1786996ec..c5c5e9e21 100644 --- a/ipapython/ipautil.py +++ b/ipapython/ipautil.py @@ -983,7 +983,7 @@ def host_port_open(host, port, socket_type=socket.SOCK_STREAM, s.connect(sa) if socket_type == socket.SOCK_DGRAM: - s.send('') + s.send(b'') s.recv(512) except socket.error: port_open = False