mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 15:31:39 +00:00
net_sdlnet.c (SDLN_GetAddrFromName): use net_hosport instead of hardcoded
26000 in the SDLNet_ResolveHost() call. git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@100 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
15d39fa705
commit
b40b2f958b
1 changed files with 1 additions and 1 deletions
|
@ -482,7 +482,7 @@ int SDLN_GetAddrFromName (char *name, struct qsockaddr *addr)
|
||||||
return PartialIPAddress (name, addr);
|
return PartialIPAddress (name, addr);
|
||||||
|
|
||||||
ipaddress = (IPaddress *)&(addr->sa_data);
|
ipaddress = (IPaddress *)&(addr->sa_data);
|
||||||
if (SDLNet_ResolveHost((IPaddress *)(&addr->sa_data), name, 26000) == -1)
|
if (SDLNet_ResolveHost((IPaddress *)(&addr->sa_data), name, net_hostport) == -1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
addr->sa_family = AF_INET;
|
addr->sa_family = AF_INET;
|
||||||
|
|
Loading…
Reference in a new issue