chore(tun): use /126 length in default prefix6

This commit is contained in:
Haruue 2024-03-19 20:34:42 +08:00
parent 92ed8f5e6a
commit 91406ab0f9
No known key found for this signature in database
GPG key ID: F6083B28CBCBC148

View file

@ -692,7 +692,7 @@ func clientTUN(config tunConfig, c client.Client) error {
return configError{Field: "prefix4", Err: err}
}
if config.Prefix6 == "" {
config.Prefix6 = "2001::ffff:ffff:ffff:fff0/127"
config.Prefix6 = "2001::ffff:ffff:ffff:fff1/126"
}
prefix6, err := netip.ParsePrefix(config.Prefix6)
if err != nil {