diff options
-rw-r--r-- | accel-pppd/extra/ippool.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/extra/ippool.c b/accel-pppd/extra/ippool.c index 844981c..44f450c 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) { |