1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-26 15:46:23 +00:00

Add ENet option to disable server relaying.

It's useless when building fully authoritative servers, and prevents
various kinds of abuse.
This commit is contained in:
Fabio Alessandrelli
2019-11-26 17:21:19 +01:00
parent ef1008e53a
commit 7e592f9641
3 changed files with 57 additions and 27 deletions

View File

@@ -78,6 +78,7 @@ private:
ENetHost *host;
bool refuse_connections;
bool server_relay;
ConnectionStatus connection_status;
@@ -158,6 +159,8 @@ public:
int get_channel_count() const;
void set_always_ordered(bool p_ordered);
bool is_always_ordered() const;
void set_server_relay_enabled(bool p_enabled);
bool is_server_relay_enabled() const;
NetworkedMultiplayerENet();
~NetworkedMultiplayerENet();