Revision c3de57f0

View differences:

net_helper-ml.c
360 360
	const char *res;
361 361
	const char *stun_server = "stun.ekiga.net";
362 362
	int stun_port = 3478;
363
	const char *repo_address = "79.120.193.115:9832";
364
	int publish_interval = 60;
363 365

  
364 366
	base = event_base_new();
365 367
	lookup_array = calloc(lookup_max,sizeof(struct nodeID *));
......
372 374
	}
373 375
	config_value_int(cfg_tags, "stun_port", &stun_port);
374 376

  
377
	res = config_value_str(cfg_tags, "repo_address");
378
	if (res) {
379
		repo_address = res;
380
	}
381
	
382
	config_value_int(cfg_tags, "publish_interval", &publish_interval);
383

  
375 384
	me = malloc(sizeof(nodeID));
376 385
	if (me == NULL) {
377 386
		return NULL;
......
403 412
	grapesInitLog(DCLOG_WARNING, NULL, NULL);
404 413

  
405 414
	repInit("");
406
	repoclient = repOpen("79.120.193.115:9832",60);	//repository.napa-wine.eu
415
	repoclient = repOpen(repo_address, publish_interval);	//repository.napa-wine.eu
407 416
	if (repoclient == NULL) fatal("Unable to initialize repoclient");
408 417
	monInit(base, repoclient);
409 418
}

Also available in: Unified diff