ViRb3 / wgcf

🚤 Cross-platform, unofficial CLI for Cloudflare Warp
MIT License
6.29k stars 698 forks source link

Only 1 address imported from settings #418

Closed idarek closed 1 month ago

idarek commented 2 months ago

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.

ViRb3 commented 2 months ago

Thanks for the report! I will fix this in the coming days.