Skip to content

Commit

Permalink
engine: remove PORT_CLIENT, we should randomize client port by defaul…
Browse files Browse the repository at this point in the history
…t, thus allowing easier connections from same IP address
  • Loading branch information
a1batross committed Oct 5, 2023
1 parent 2fdd080 commit 34fa1b5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions engine/common/net_ws.c
Original file line number Diff line number Diff line change
Expand Up @@ -2113,9 +2113,6 @@ void NET_Init( void )
Q_snprintf( cmd, sizeof( cmd ), "%i", PORT_SERVER );
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_RegisterVariable( &net_ip6name );
Cvar_RegisterVariable( &net_ip6hostport );
Expand Down
1 change: 0 additions & 1 deletion engine/common/netchan.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ GNU General Public License for more details.
#define MS_SCAN_REQUEST "1\xFF" "0.0.0.0:0\0"

#define PORT_MASTER 27010
#define PORT_CLIENT 27005
#define PORT_SERVER 27015

#define MULTIPLAYER_BACKUP 64 // how many data slots to use when in multiplayer (must be power of 2)
Expand Down

0 comments on commit 34fa1b5

Please sign in to comment.