Merge pull request #29793 from Faless/enet/bind
Fix ENet incorrectly binding to wildcard.
This commit is contained in:
commit
63b8c00d55
@ -80,6 +80,7 @@ Error NetworkedMultiplayerENet::create_server(int p_port, int p_max_clients, int
|
|||||||
ERR_FAIL_COND_V(p_out_bandwidth < 0, ERR_INVALID_PARAMETER);
|
ERR_FAIL_COND_V(p_out_bandwidth < 0, ERR_INVALID_PARAMETER);
|
||||||
|
|
||||||
ENetAddress address;
|
ENetAddress address;
|
||||||
|
memset(&address, 0, sizeof(address));
|
||||||
|
|
||||||
#ifdef GODOT_ENET
|
#ifdef GODOT_ENET
|
||||||
if (bind_ip.is_wildcard()) {
|
if (bind_ip.is_wildcard()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user