|
Source game input_db.cpp
search
CMapLocation::instance().Insert(pLoc->alMaps, pLoc->szHost, pLoc->wPort);
modify with
CMapLocation::instance().Insert(pLoc->alMaps, g_szProxyIP, pLoc->wPort);
add in config.h
extern char g_szProxyIP[16];
add in config.cpp after BYTE g_bChannel = 0;
char g_szProxyIP[16] = "0";
after add below
TOKEN("bind_ip")
{
strlcpy(g_szPublicIP, value_string, sizeof(g_szPublicIP));
}
add this
TOKEN("proxy_ip")
{
strlcpy(g_szProxyIP, value_string, sizeof(g_szProxyIP));
}
and now in every channel config(apart from auth and db) add
PROXY_IP: your extern static ip
and compile source game.
for me, i have a problem with compile game...i need some programs for this..
this is the solution that someone offered me! good luck
|