From 35b6d11f2ec6884c5ef1385d1cf2dbd7e3745420 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Wed, 15 May 2019 18:01:30 +0300 Subject: ippool: exclude gw-ip-address from address pool --- accel-pppd/extra/ippool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/accel-pppd/extra/ippool.c b/accel-pppd/extra/ippool.c index 844981cc..44f450cd 100644 --- a/accel-pppd/extra/ippool.c +++ b/accel-pppd/extra/ippool.c @@ -256,7 +256,8 @@ static void generate_pool_p2p(struct ippool_t *p) addr = list_entry(p->gw_list.next, typeof(*addr), entry); list_del(&addr->entry); } - } + } else if (conf_gw_ip_address == peer_addr->addr) + continue; it = malloc(sizeof(*it)); if (!it) { -- cgit v1.2.3