diff options
author | Vladislav Grishenko <themiron@mail.ru> | 2021-03-23 12:51:24 +0500 |
---|---|---|
committer | Vladislav Grishenko <themiron@mail.ru> | 2021-03-23 12:51:24 +0500 |
commit | e5575a7497104d54da4b5de5580ffe83eb4f8230 (patch) | |
tree | c17bf4eb6adeb4ec772b2794d768cc4af7dce6a3 /accel-pppd | |
parent | 44a526ab7de382f2ea0295c88a6024960cabca77 (diff) | |
download | accel-ppp-e5575a7497104d54da4b5de5580ffe83eb4f8230.tar.gz accel-ppp-e5575a7497104d54da4b5de5580ffe83eb4f8230.zip |
ipoe: recover common check-ip opt processing
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |