about summary refs log tree commit diff
path: root/src/engine/shared/engine.cpp
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-04-04 18:20:05 +0200
committeroy <Tom_Adams@web.de>2011-04-04 18:20:05 +0200
commit4ad6d2f01e5b972a969dced080976f2e8dfbd939 (patch)
treecd0e24e2daf73295c0a23ff12198b5bc0acd555c /src/engine/shared/engine.cpp
parent622b3de9bd224dca8c55ea6ab7b12d05dc30e705 (diff)
downloadzcatch-4ad6d2f01e5b972a969dced080976f2e8dfbd939.tar.gz
zcatch-4ad6d2f01e5b972a969dced080976f2e8dfbd939.zip
fixed problem with sv_bindaddr on the server
Diffstat (limited to 'src/engine/shared/engine.cpp')
-rw-r--r--src/engine/shared/engine.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/engine/shared/engine.cpp b/src/engine/shared/engine.cpp
index c7a1daad..b4b4f2a5 100644
--- a/src/engine/shared/engine.cpp
+++ b/src/engine/shared/engine.cpp
@@ -13,7 +13,7 @@
 static int HostLookupThread(void *pUser)
 {
 	CHostLookup *pLookup = (CHostLookup *)pUser;
-	return net_host_lookup(pLookup->m_aHostname, &pLookup->m_Addr, NETTYPE_ALL);
+	return net_host_lookup(pLookup->m_aHostname, &pLookup->m_Addr, pLookup->m_Nettype);
 }
 
 class CEngine : public IEngine
@@ -98,9 +98,10 @@ public:
 			dbg_logger_file(g_Config.m_Logfile);
 	}
 
-	void HostLookup(CHostLookup *pLookup, const char *pHostname)
+	void HostLookup(CHostLookup *pLookup, const char *pHostname, int Nettype)
 	{
 		str_copy(pLookup->m_aHostname, pHostname, sizeof(pLookup->m_aHostname));
+		pLookup->m_Nettype = Nettype;
 		AddJob(&pLookup->m_Job, HostLookupThread, pLookup);
 	}