diff options
author | marekm72 <35698605+marekm72@users.noreply.github.com> | 2024-07-28 18:27:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-28 18:27:18 +0200 |
commit | 550bca26e3a390ec5b878f7b6cb3f09448c775ae (patch) | |
tree | 15c735714aeaca39128b283ff6bb0552b1cc820d | |
parent | 501c7230a278b62cb161acef8a8b29f8ab647fda (diff) | |
download | accel-ppp-xebd-patch-1.tar.gz accel-ppp-xebd-patch-1.zip |
Likewise for IPv4patch-1
-rw-r--r-- | accel-pppd/ppp/ppp_ipcp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/ppp/ppp_ipcp.c b/accel-pppd/ppp/ppp_ipcp.c index 416fba9..5e314e2 100644 --- a/accel-pppd/ppp/ppp_ipcp.c +++ b/accel-pppd/ppp/ppp_ipcp.c @@ -738,7 +738,8 @@ static void ipcp_recv(struct ppp_handler_t*h) if (conf_ppp_verbose) log_ppp_info2("recv [IPCP TermReq id=%x]\n", hdr->id); ppp_fsm_recv_term_req(&ipcp->fsm); - ap_session_terminate(&ipcp->ppp->ses, TERM_USER_REQUEST, 0); + if (conf_ipv4 == IPV4_REQUIRE) + ap_session_terminate(&ipcp->ppp->ses, TERM_USER_REQUEST, 0); break; case TERMACK: if (conf_ppp_verbose) |