From e5575a7497104d54da4b5de5580ffe83eb4f8230 Mon Sep 17 00:00:00 2001 From: Vladislav Grishenko Date: Tue, 23 Mar 2021 12:51:24 +0500 Subject: ipoe: recover common check-ip opt processing --- accel-pppd/ctrl/ipoe/ipoe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accel-pppd') diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index 70c5710a..126a0062 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -4060,7 +4060,7 @@ static void load_config(void) opt = conf_get_opt("ipoe", "check-ip"); if (!opt) opt = conf_get_opt("common", "check-ip"); - if (opt) + if (opt && atoi(opt) >= 0) conf_check_exists = atoi(opt) > 0; #ifdef RADIUS -- cgit v1.2.3