mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-24 03:06:38 +00:00
dynamic regex
This commit is contained in:
@@ -165,7 +165,7 @@ func GetResourceType(address string) (NetworkResourceType, string, netip.Prefix,
|
||||
return Host, "", netip.PrefixFrom(ip, ip.BitLen()), nil
|
||||
}
|
||||
|
||||
if domain, err := nbDomain.ToValidDomain(address); err == nil {
|
||||
if domain, err := nbDomain.ToValidDomain(address, true, false); err == nil {
|
||||
return Domain, string(domain), netip.Prefix{}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user