You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
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:
committed by
Rémi Verschelde
parent
465056b6eb
commit
a24e681e1c
@@ -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()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user