From 7af279390931ef6f0ce6c6ee5ca8c9effb72fea0 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Mon, 18 May 2020 21:22:07 -0500 Subject: [PATCH] Replaces enet default address to enet.HOST_ANY --- enetcomponents/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enetcomponents/server.py b/enetcomponents/server.py index 9858282..e2b42b1 100644 --- a/enetcomponents/server.py +++ b/enetcomponents/server.py @@ -26,7 +26,7 @@ class channel(object): class server(object): - def __init__(self, host=b"localhost", port=33333, peer_count=256, channel_limit=4, incoming_bandwidth=0, outgoing_bandwidth=0): + def __init__(self, host=None, port=33333, peer_count=256, channel_limit=4, incoming_bandwidth=0, outgoing_bandwidth=0): address = enet.Address(host, port) self.host = enet.Host(address, peer_count, channel_limit, incoming_bandwidth, outgoing_bandwidth) self.peers = {}