Removing Windows Server support

This commit is contained in:
Cuong Manh Le
2025-07-03 15:25:16 +07:00
committed by Cuong Manh Le
parent ba9057e466
commit 975b465e3e
14 changed files with 13 additions and 363 deletions
+1 -1
View File
@@ -403,7 +403,7 @@ func (uc *UpstreamConfig) IsDiscoverable() bool {
return *uc.Discoverable
}
switch uc.Type {
case ResolverTypeOS, ResolverTypeLegacy, ResolverTypePrivate, ResolverTypeLocal:
case ResolverTypeOS, ResolverTypeLegacy, ResolverTypePrivate:
if ip, err := netip.ParseAddr(uc.Domain); err == nil {
return ip.IsLoopback() || ip.IsPrivate() || ip.IsLinkLocalUnicast() || tsaddr.CGNATRange().Contains(ip)
}