Revision 0c487aac som/net_helper-ml.c

View differences:

som/net_helper-ml.c
134 134
		break;
135 135
	case 2:
136 136
	    fprintf(stderr,"Net-helper init : NAT traversal timeout while creating socket\n");
137
	    exit(2);
137
	    fprintf(stderr,"Net-helper init : Retrying without STUN\n");
138
	    mlSetStunServer(0,NULL);
138 139
	    break;
139 140
	default :	// should never happen
140 141
		//
......
302 303

  
303 304
	mlRegisterErrorConnectionCb(&connError_cb);
304 305
	mlRegisterRecvConnectionCb(&receive_conn_cb);
305
	mlInit(1,tout,port,IPaddr,0,NULL,&init_myNodeID_cb,base);
306
	mlInit(1,tout,port,IPaddr,3478,"stun.ekiga.net",&init_myNodeID_cb,base);
306 307
	while (me->connID<-1) {
307 308
	//	event_base_once(base,-1, EV_TIMEOUT, &t_out_cb, NULL, &tout);
308 309
		event_base_loop(base,EVLOOP_ONCE);

Also available in: Unified diff