mirror of
https://github.com/juanfont/headscale.git
synced 2026-02-07 20:04:00 +01:00
config: clarify unsupported prefixes warnings
This commit is contained in:
parent
cbf3e00157
commit
62409aa996
@ -856,7 +856,9 @@ func prefixV4() (*netip.Prefix, error) {
|
||||
ipSet, _ := builder.IPSet()
|
||||
if !ipSet.ContainsPrefix(prefixV4) {
|
||||
log.Warn().
|
||||
Msgf("Prefix %s is not in the %s range. This is an unsupported configuration.",
|
||||
Msgf("`prefixes.v4` is set to %s, which is outside the supported %s range. "+
|
||||
"Headscale only supports prefixes within this range (including subsets); "+
|
||||
"custom ranges are unsupported and may break client connectivity.",
|
||||
prefixV4Str, tsaddr.CGNATRange())
|
||||
}
|
||||
|
||||
@ -881,7 +883,9 @@ func prefixV6() (*netip.Prefix, error) {
|
||||
|
||||
if !ipSet.ContainsPrefix(prefixV6) {
|
||||
log.Warn().
|
||||
Msgf("Prefix %s is not in the %s range. This is an unsupported configuration.",
|
||||
Msgf("`prefixes.v6` is set to %s, which is outside the supported %s range. "+
|
||||
"Headscale only supports prefixes within this range (including subsets); "+
|
||||
"custom ranges are unsupported and may break client connectivity.",
|
||||
prefixV6Str, tsaddr.TailscaleULARange())
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user