X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=blobdiff_plain;f=tr%2Ftr_mon.c;h=13270825ef399c23d6a07cdf2ff7ab6177f01d4b;hp=84ab353d81c3e740d6acb37288d5dd7d24780bc3;hb=HEAD;hpb=5214f20ad646142aab61b025d41e84c5b881d2b6 diff --git a/tr/tr_mon.c b/tr/tr_mon.c index 84ab353..1327082 100644 --- a/tr/tr_mon.c +++ b/tr/tr_mon.c @@ -144,7 +144,7 @@ int tr_mons_event_init(struct event_base *base, goto cleanup; } - if (cfg_mgr->active->internal->monitoring_port == 0) { + if (cfg_mgr->active->internal->mons_port == 0) { tr_notice("tr_mons_event_init: monitoring is disabled, not enabling events or opening sockets"); retval = 0; goto cleanup; @@ -166,7 +166,7 @@ int tr_mons_event_init(struct event_base *base, mons_ev->n_sock_fd = mons_get_listener(mons, tr_mons_req_handler, tr_mons_auth_handler, cfg_mgr->active->internal->hostname, - cfg_mgr->active->internal->monitoring_port, + cfg_mgr->active->internal->mons_port, (void *) cookie, mons_ev->sock_fd, TR_MAX_SOCKETS); if (mons_ev->n_sock_fd==0) {