Skip to content

Commit

Permalink
Ensure router configuration is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Nordström committed Nov 2, 2013
1 parent 110769c commit 78487c3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/servd/servd.c
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,9 @@ int main(int argc, char **argv)
if (ctx.router_ip.s_addr != 0)
ctx.router_ip_set = 1;

if (router)
ctx.router = 1;

argc--;
argv++;

Expand Down Expand Up @@ -914,6 +917,10 @@ int main(int argc, char **argv)
argv++;
}

if (ctx.router) {
LOG_DBG("Acting as service router\n");
}

if (ctx.router_ip_set) {
#if defined(ENABLE_DEBUG)
char addr[18];
Expand Down

0 comments on commit 78487c3

Please sign in to comment.