Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
capmt: nicename - don't include port for socket modes
  • Loading branch information
perexg committed Oct 2, 2015
1 parent 19d3b90 commit e3c088b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/descrambler/capmt.c
Expand Up @@ -2074,9 +2074,13 @@ capmt_service_start(caclient_t *cac, service_t *s)
}

td = (th_descrambler_t *)ct;
snprintf(buf, sizeof(buf), "capmt-%s-%i",
capmt->capmt_sockfile,
capmt->capmt_port);
if (capmt->capmt_oscam == CAPMT_OSCAM_TCP || capmt->capmt_oscam == CAPMT_OSCAM_NET_PROTO) {
snprintf(buf, sizeof(buf), "capmt-%s-%i",
capmt->capmt_sockfile,
capmt->capmt_port);
} else {
snprintf(buf, sizeof(buf), "capmt-%s", capmt->capmt_sockfile);
}
td->td_nicename = strdup(buf);
td->td_service = s;
td->td_stop = capmt_service_destroy;
Expand Down

0 comments on commit e3c088b

Please sign in to comment.