Fix prefix detection for hybrid mode
authorSteven Barth <steven@midlink.org>
Fri, 17 Jan 2014 11:23:59 +0000 (12:23 +0100)
committerSteven Barth <steven@midlink.org>
Fri, 17 Jan 2014 11:24:19 +0000 (12:24 +0100)
src/config.c

index b6b3708acba852a7d41ff3d76f1138726f871cbf..d025bdf23e99f3cf46924dfdc5f9db04c3a57e5d 100644 (file)
@@ -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