mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-13 16:47:57 +00:00
engine: remove PORT_CLIENT, we should randomize client port by default, thus allowing easier connections from same IP address
This commit is contained in:
parent
2fdd080eef
commit
34fa1b5ec8
@ -2113,9 +2113,6 @@ void NET_Init( void )
|
|||||||
Q_snprintf( cmd, sizeof( cmd ), "%i", PORT_SERVER );
|
Q_snprintf( cmd, sizeof( cmd ), "%i", PORT_SERVER );
|
||||||
Cvar_FullSet( "hostport", cmd, FCVAR_READ_ONLY );
|
Cvar_FullSet( "hostport", cmd, FCVAR_READ_ONLY );
|
||||||
|
|
||||||
Q_snprintf( cmd, sizeof( cmd ), "%i", PORT_CLIENT );
|
|
||||||
Cvar_FullSet( "clientport", cmd, FCVAR_READ_ONLY );
|
|
||||||
|
|
||||||
// cvar equivalents for IPv6
|
// cvar equivalents for IPv6
|
||||||
Cvar_RegisterVariable( &net_ip6name );
|
Cvar_RegisterVariable( &net_ip6name );
|
||||||
Cvar_RegisterVariable( &net_ip6hostport );
|
Cvar_RegisterVariable( &net_ip6hostport );
|
||||||
|
@ -73,7 +73,6 @@ GNU General Public License for more details.
|
|||||||
#define MS_SCAN_REQUEST "1\xFF" "0.0.0.0:0\0"
|
#define MS_SCAN_REQUEST "1\xFF" "0.0.0.0:0\0"
|
||||||
|
|
||||||
#define PORT_MASTER 27010
|
#define PORT_MASTER 27010
|
||||||
#define PORT_CLIENT 27005
|
|
||||||
#define PORT_SERVER 27015
|
#define PORT_SERVER 27015
|
||||||
|
|
||||||
#define MULTIPLAYER_BACKUP 64 // how many data slots to use when in multiplayer (must be power of 2)
|
#define MULTIPLAYER_BACKUP 64 // how many data slots to use when in multiplayer (must be power of 2)
|
||||||
|
Loading…
Reference in New Issue
Block a user