Use 40 bytes for the "host" (IP address) in GAMESTRUCT, this allows for using IPv6 without breaking protocol combatility again
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7239 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
29a2b2fe35
commit
e16e034ec7
|
@ -125,7 +125,7 @@ typedef enum
|
|||
typedef struct { //Available game storage... JUST FOR REFERENCE!
|
||||
int32_t dwSize;
|
||||
int32_t dwFlags;
|
||||
char host[16]; // host ip address
|
||||
char host[40]; // host's ip address (can fit a full IPv4 and IPv6 address + terminating NUL)
|
||||
int32_t dwMaxPlayers;
|
||||
int32_t dwCurrentPlayers;
|
||||
int32_t dwUserFlags[4];
|
||||
|
|
Loading…
Reference in New Issue