Permalink
Browse files

add ifdef to ssl variable

  • Loading branch information...
vanosg committed Dec 20, 2018
1 parent 2962dd2 commit 89280acf0394256c71322183cf06babb2afe36db
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/dcc.c
@@ -1458,8 +1458,13 @@ static void eof_dcc_telnet(int idx)

static void display_telnet(int idx, char *buf)
{
#ifdef TLS
sprintf(buf, "lstn %s%d%s", dcc[idx].ssl ? "+" : "", dcc[idx].port,
(dcc[idx].status & LSTN_PUBLIC) ? " pub" : "");
#else
sprintf(buf, "lstn %d%s", dcc[idx].port,
(dcc[idx].status & LSTN_PUBLIC) ? " pub" : "");
#endif
}

struct dcc_table DCC_TELNET = {

0 comments on commit 89280ac

Please sign in to comment.