summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index 9880162c..1316b615 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -3954,8 +3954,10 @@ static void load_config(void)
else
conf_weight = 0;
- opt = conf_get_opt("common", "check-ip");
- if (opt && atoi(opt) >= 0)
+ opt = conf_get_opt("ipoe", "check-ip");
+ if (!opt)
+ opt = conf_get_opt("common", "check-ip");
+ if (opt && opt >= 0)
conf_check_exists = atoi(opt) > 0;
#ifdef RADIUS