Browse Source

edge.c: fix incorrect bad gateway check

It seems the previous `route.net_addr == INADDR_NONE` check was incorrect and was probably a result of copy-pasting the previous if statement and not changing the condition.
pull/284/head
Disconnect3d 4 years ago
committed by GitHub
parent
commit
c2442ae486
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/edge.c

2
src/edge.c

@ -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;
}

Loading…
Cancel
Save