diff options
author | xebd <xeb@mail.ru> | 2019-08-20 13:23:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-20 13:23:11 +0300 |
commit | b011a767caad1ea038e3841cd1b3f2ae19c6aa85 (patch) | |
tree | 00c7fd7c8131373d847eea13faebf0cc181d3232 /accel-pppd/ppp | |
parent | 7b62a4038bc2d9a48c86856ab7726da311007fee (diff) | |
parent | 668150d2cdb2c25966a4bbd398db85e33c8488a2 (diff) | |
download | accel-ppp-xebd-b011a767caad1ea038e3841cd1b3f2ae19c6aa85.tar.gz accel-ppp-xebd-b011a767caad1ea038e3841cd1b3f2ae19c6aa85.zip |
Merge pull request #95 from DmitriyEshenko/common_check_ip
Prepared check-ip and for ipoe, migrate to [common]check-ip
Diffstat (limited to 'accel-pppd/ppp')
-rw-r--r-- | accel-pppd/ppp/ipcp_opt_ipaddr.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/accel-pppd/ppp/ipcp_opt_ipaddr.c b/accel-pppd/ppp/ipcp_opt_ipaddr.c index 7bac55b..03eb418 100644 --- a/accel-pppd/ppp/ipcp_opt_ipaddr.c +++ b/accel-pppd/ppp/ipcp_opt_ipaddr.c @@ -171,9 +171,14 @@ static void load_config(void) { const char *opt; - opt = conf_get_opt("ppp", "check-ip"); - if (opt && atoi(opt) >= 0) - conf_check_exists = atoi(opt) > 0; + opt = conf_get_opt("common", "check-ip"); + if (opt && atoi(opt) > 0) + conf_check_exists = atoi(opt); + else { + opt = conf_get_opt("ppp", "check-ip"); + if (opt && atoi(opt) >= 0) + conf_check_exists = atoi(opt) > 0; + } } static void ipaddr_opt_init() |