summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2014-01-17 12:23:59 +0100
committerSteven Barth <steven@midlink.org>2014-01-17 12:24:19 +0100
commitbaee1992982f92a45870ba0aaea111c00963de5d (patch)
treeb879df8709894cc4dbb897435d48b2c63e18ec02 /src
parent71db4a0c548b23d842fdf3cc2b3ed6a88816c8ba (diff)
Fix prefix detection for hybrid mode
Diffstat (limited to 'src')
-rw-r--r--src/config.c2
1 files changed, 1 insertions, 1 deletions
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