Skip to content

Commit

Permalink
Merge pull request ntop#284 from disconnect3d/patch-1
Browse files Browse the repository at this point in the history
edge.c: fix incorrect bad gateway check
  • Loading branch information
lucaderi authored Jun 30, 2020
2 parents c6b7b67 + c2442ae commit a6929aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/edge.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ static int setOption(int optkey, char *optargument, n2n_priv_config_t *ec, n2n_e
break;
}

if(route.net_addr == INADDR_NONE) {
if(route.gateway == INADDR_NONE) {
traceEvent(TRACE_WARNING, "Bad gateway '%s' in '%s'", gateway, optargument);
break;
}
Expand Down

0 comments on commit a6929aa

Please sign in to comment.