Fix ENet incorrectly binding to wildcard.
Values were not properly initialized, and wildcard would evaluate to
true in most cases.
(cherry picked from commit abe2c22966
)
This commit is contained in:
parent
c27f44f525
commit
d9992a2b78
|
@ -59,6 +59,7 @@ Error NetworkedMultiplayerENet::create_server(int p_port, int p_max_clients, int
|
||||||
ERR_FAIL_COND_V(active, ERR_ALREADY_IN_USE);
|
ERR_FAIL_COND_V(active, ERR_ALREADY_IN_USE);
|
||||||
|
|
||||||
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