You've already forked godot
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user