func GetSupportedFeatures() SupportedFeatures {
	var features SupportedFeatures

	globals, err := GetGlobals()
	if err != nil {
		// Expected on pre-1803 builds, all features will be false/unsupported
		logrus.Debugf("Unable to obtain globals: %s", err)
		return features
	}

	features.Acl = AclFeatures{
		AclAddressLists:       isFeatureSupported(globals.Version, HNSVersion1803),
		AclNoHostRulePriority: isFeatureSupported(globals.Version, HNSVersion1803),
		AclPortRanges:         isFeatureSupported(globals.Version, HNSVersion1803),
		AclRuleId:             isFeatureSupported(globals.Version, HNSVersion1803),
	}

	features.Api = ApiSupport{
		V2: isFeatureSupported(globals.Version, V2ApiSupport),
		V1: true, // HNSCall is still available.
	}

	features.RemoteSubnet = isFeatureSupported(globals.Version, RemoteSubnetVersion)
	features.HostRoute = isFeatureSupported(globals.Version, HostRouteVersion)
	features.DSR = isFeatureSupported(globals.Version, DSRVersion)
	features.Slash32EndpointPrefixes = isFeatureSupported(globals.Version, Slash32EndpointPrefixesVersion)
	features.AclSupportForProtocol252 = isFeatureSupported(globals.Version, AclSupportForProtocol252Version)
	features.SessionAffinity = isFeatureSupported(globals.Version, SessionAffinityVersion)
	features.IPv6DualStack = isFeatureSupported(globals.Version, IPv6DualStackVersion)

	return features
}
// GetSupportedFeatures returns the features supported by the Service.
GetSupportedFeatures returns the features supported by the Service.
// GetSupportedFeatures returns the features supported by the Service .
func GetSupportedFeatures() SupportedFeatures {
	var features SupportedFeatures
	globals, err := GetGlobals()
	if err != nil {
		logrus.Debugf("Unable to obtain globals: %s", err)
		return features
	}
	features.Acl = AclFeatures{
		AclAddressLists:       isFeatureSupported(globals.Version, HNSVersion1803),
		AclNoHostRulePriority: isFeatureSupported(globals.Version, HNSVersion1803),
		AclPortRanges:         isFeatureSupported(globals.Version, HNSVersion1803),
		AclRuleId:             isFeatureSupported(globals.Version, HNSVersion1803),
	}
	features.Api = ApiSupport{
		V2: isFeatureSupported(globals.Version, V2ApiSupport),
		V1: true, 
	}
	features.RemoteSubnet = isFeatureSupported(globals.Version, RemoteSubnetVersion)
	features.HostRoute = isFeatureSupported(globals.Version, HostRouteVersion)
	features.DSR = isFeatureSupported(globals.Version, DSRVersion)
	features.Slash32EndpointPrefixes = isFeatureSupported(globals.Version, Slash32EndpointPrefixesVersion)
	features.AclSupportForProtocol252 = isFeatureSupported(globals.Version, AclSupportForProtocol252Version)
	features.SessionAffinity = isFeatureSupported(globals.Version, SessionAffinityVersion)
	features.IPv6DualStack = isFeatureSupported(globals.Version, IPv6DualStackVersion)
	return features
}
func GetSupportedFeatures ( ) SupportedFeatures { var features SupportedFeatures globals , err := GetGlobals ( ) if err != nil { logrus . Debugf ( " " , err ) return features } features . Acl = AclFeatures { AclAddressLists : isFeatureSupported ( globals . Version , HNSVersion1803 ) , AclNoHostRulePriority : isFeatureSupported ( globals . Version , HNSVersion1803 ) , AclPortRanges : isFeatureSupported ( globals . Version , HNSVersion1803 ) , AclRuleId : isFeatureSupported ( globals . Version , HNSVersion1803 ) , } features . Api = ApiSupport { V2 : isFeatureSupported ( globals . Version , V2ApiSupport ) , V1 : true , } features . RemoteSubnet = isFeatureSupported ( globals . Version , RemoteSubnetVersion ) features . HostRoute = isFeatureSupported ( globals . Version , HostRouteVersion ) features . DSR = isFeatureSupported ( globals . Version , DSRVersion ) features . Slash32EndpointPrefixes = isFeatureSupported ( globals . Version , Slash32EndpointPrefixesVersion ) features . AclSupportForProtocol252 = isFeatureSupported ( globals . Version , AclSupportForProtocol252Version ) features . SessionAffinity = isFeatureSupported ( globals . Version , SessionAffinityVersion ) features . IPv6DualStack = isFeatureSupported ( globals . Version , IPv6DualStackVersion ) return features }
GetSupportedFeatures returns the features supported by the Service.
GetSupportedFeatures returns the features supported by the Service .
// Expected on pre-1803 builds, all features will be false/unsupported // HNSCall is still available.