From c2442ae486f07ba4bbec2f6ff717ec09c2b543bb Mon Sep 17 00:00:00 2001 From: Disconnect3d Date: Tue, 30 Jun 2020 14:16:54 +0200 Subject: [PATCH] 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. --- src/edge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/edge.c b/src/edge.c index b88e524..63c8314 100644 --- a/src/edge.c +++ b/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; }