Use json_is_true() in place of json_boolean_value() for compatibility
[trust_router.git] / tr / tr_mon.c
index beb258e..1327082 100644 (file)
@@ -102,7 +102,6 @@ static int tr_mons_auth_handler(gss_name_t client_name, TR_NAME *gss_name, void
     return -1;
   }
 
-  tr_debug("tr_mons_gss_handler: %p", mons->authorized_gss_names);
   /* Ensure at least one client exists using this GSS name */
   if (! tr_gss_names_matches(mons->authorized_gss_names, gss_name)) {
     tr_info("tr_mons_gss_handler: Unauthorized request from %.*s", gss_name->len, gss_name->buf);
@@ -145,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;
@@ -167,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) {