mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-26 09:58:20 +01:00
allow default relay port, like name, to be set at compile time
This commit is contained in:
parent
55478369e4
commit
5ab3425377
2 changed files with 4 additions and 1 deletions
|
@ -715,7 +715,7 @@ comms_getInitialAddr( CommsAddrRec* addr )
|
|||
#if defined XWFEATURE_RELAY
|
||||
addr->conType = COMMS_CONN_RELAY; /* for temporary ease in debugging */
|
||||
addr->u.ip_relay.ipAddr = 0L; /* force 'em to set it */
|
||||
addr->u.ip_relay.port = 10999;
|
||||
addr->u.ip_relay.port = RELAY_PORT_DEFAULT;
|
||||
{
|
||||
char* name = RELAY_NAME_DEFAULT;
|
||||
char* room = RELAY_ROOM_DEFAULT;
|
||||
|
|
|
@ -171,6 +171,9 @@ typedef struct CommonPrefs {
|
|||
#ifndef RELAY_ROOM_DEFAULT
|
||||
# define RELAY_ROOM_DEFAULT "Room 1"
|
||||
#endif
|
||||
#ifndef RELAY_PORT_DEFAULT
|
||||
# define RELAY_PORT_DEFAULT 10999
|
||||
#endif
|
||||
|
||||
#ifdef MEM_DEBUG
|
||||
# define XP_MALLOC(pool,nbytes) \
|
||||
|
|
Loading…
Reference in a new issue