wgcf icon indicating copy to clipboard operation
wgcf copied to clipboard

Only 1 address imported from settings

Open idarek opened this issue 6 months ago • 1 comments

When generating wgcf-profile.conf the first part contains two times fields Address, one for IPv4 and the other for IPv6

example

Address = 172.16.0.2/32
Address = 2606:4700:110:8998:1b86:d65a:d153:1234/128

Some apps (in that case OpenWrt) while importing these settings only add a single IP address (the 2nd) and the first is ignored.

Both addresses are imported correctly if they are presented in one line like this

Address = 172.16.0.2/32, 2606:4700:110:8998:1b86:d65a:d153:1234/128

Is it possible to amend that to save addresses in a single line?

Similar with

AllowedIPs = 0.0.0.0/0
AllowedIPs = ::/0

Is only importing 2nd, but when is in that format:

AllowedIPs = 0.0.0.0/0, ::/0

Importing both correctly.

idarek avatar Aug 22 '24 12:08 idarek