ViRb3 / wgcf

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

Forcing IPv4 #419

Closed derydemas closed 1 week ago

derydemas commented 2 months ago

I used wgcf to generate config for my TP-Link router, but when I try to import the config to the router, it says the IPv6 address is invalid because it is expecting an IPv4 address. Is there a way to force wgcf to use IPv4 instead of IPv6?

ViRb3 commented 2 months ago

Could this be a duplicate of #418?

derydemas commented 2 months ago

It is indeed similar to that issue. I searched for duplicate issues before opening mine but didn't see #418 for some reason. However, I still get the "Invalid format" error even when I put both IPv4 and IPv6 addresses on one line. It seems my router's Wireguard config just doesn't support IPv6 addresses. I was able to get around the error by deleting the IPv6 address lines (Address and AllowedIPs). Thanks!

ViRb3 commented 1 week ago

Got it, will close then since this isn't a problem with wgcf.