View Single Post
  #2  
Old 04-15-2014, 11:31 PM
vishnu
Sarnak
 
Join Date: Oct 2009
Posts: 35
Default

update:
Code:
if (!zs_addr[0]) {
	if (cle->IsLocalClient()) {
		struct in_addr in;
		in.s_addr = zs->GetIP();
		zs_addr=inet_ntoa(in);
		if (!strcmp(zs_addr,"127.0.0.1"))
			zs_addr=WorldConfig::get()->LocalAddress.c_str();
	} else {
		//zs_addr=WorldConfig::get()->WorldAddress.c_str();
		struct in_addr in;
		in.s_addr = zs->GetIP();
		zs_addr=inet_ntoa(in);
                if (!strcmp(zs_addr,"127.0.0.1"))
			zs_addr=WorldConfig::get()->WorldAddress.c_str();
	}
}
Reply With Quote