From baee1992982f92a45870ba0aaea111c00963de5d Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 17 Jan 2014 12:23:59 +0100 Subject: [PATCH] Fix prefix detection for hybrid mode --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index b6b3708..d025bdf 100644 --- a/src/config.c +++ b/src/config.c @@ -560,7 +560,7 @@ void odhcpd_reload(void) enum odhcpd_mode hybrid_mode = RELAYD_DISABLED; #ifdef WITH_UBUS - if (ubus_has_prefix(i->name, i->ifname)) + if (!ubus_has_prefix(i->name, i->ifname)) hybrid_mode = RELAYD_RELAY; #endif -- 2.25.1