Merge pull request #284 from disconnect3d/patch-1

edge.c: fix incorrect bad gateway check
This commit is contained in:
Luca Deri
2020-06-30 16:33:57 +02:00
committed by GitHub
+1 -1
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;
}