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:
Disconnect3d 2020-06-30 14:16:54 +02:00 committed by GitHub
parent c6b7b67a6a
commit c2442ae486
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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