vx3r / wg-gen-web

Simple Web based configuration generator for WireGuard

Home Page:https://wg-gen-web-demo.127-0-0-1.fr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crashes due to multiple CIDRs input

alonbg opened this issue · comments

commented

how to reproduce from the UI

In the "Server interface addresses field type:
fd42:42:42::1/64
<enter>
10.8.0.1/24
<enter>
click "update server configuration"

a stack trace starting with fatal error: runtime: out of memory is dumped

with only a single ipv4 CIDR there is no problem

commented

hi @alonbg. Im aware of this limitation, basically its because im generating a list of all IP addresses from given cidr before picking an available IP address. For an IPv6 /64 cidr it makes a huge list... I will correct it tomorrow, Tokyo time.
Thank you