Revision ea1436ee

View differences:

ml.c
209 209

  
210 210
void unsetStunServer()
211 211
{
212
	stun_server.sin_addr.s_addr = 0;
212
	stun_server.sin_addr.s_addr = INADDR_NONE;
213 213
}
214 214

  
215 215
bool isStunDefined()
216 216
{
217
	return stun_server.sin_addr.s_addr;
217
	return stun_server.sin_addr.s_addr != INADDR_NONE;
218 218
}
219 219

  
220 220
void send_msg(int con_id, int msg_type, char* msg, int msg_len, bool truncable, send_params * sParams) {
......
1983 1983

  
1984 1984
	stun_server.sin_family = AF_INET;
1985 1985
	if (ipaddr == NULL)
1986
		stun_server.sin_addr.s_addr = htonl(INADDR_ANY);
1986
		stun_server.sin_addr.s_addr = htonl(INADDR_NONE);
1987 1987
	else
1988 1988
		stun_server.sin_addr.s_addr = resolve(ipaddr);
1989 1989
	stun_server.sin_port = htons(port);

Also available in: Unified diff