fix(wireguard): ignore IPv6 addresses if IPv6 is not supported

This commit is contained in:
Quentin McGaw
2022-12-14 11:12:38 +00:00
parent a4cf17f81e
commit 2e3eb1fd7b
3 changed files with 9 additions and 4 deletions

View File

@@ -23,6 +23,7 @@ type Settings struct {
// Wireguard server endpoint to connect to.
Endpoint *net.UDPAddr
// Addresses assigned to the client.
// Note IPv6 addresses are ignored if IPv6 is not supported.
Addresses []*net.IPNet
// FirewallMark to be used in routing tables and IP rules.
// It defaults to 51820 if left to 0.