mirror of
https://github.com/ntop/n2n.git
synced 2024-09-20 00:51:10 +02:00
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.
This commit is contained in:
parent
c6b7b67a6a
commit
c2442ae486
|
@ -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…
Reference in New Issue
Block a user