Refine DomainStrategy config

This commit is contained in:
秋のかえで 2021-04-07 22:53:21 +08:00
parent b9c5de96e7
commit 946a7a2647
No known key found for this signature in database
GPG key ID: C687746B27587C0D

View file

@ -52,11 +52,11 @@ func (c *RouterConfig) getDomainStrategy() router.Config_DomainStrategy {
}
switch strings.ToLower(ds) {
case "alwaysip":
case "alwaysip", "always_ip", "always-ip":
return router.Config_UseIp
case "ipifnonmatch":
case "ipifnonmatch", "ip_if_non_match", "ip-if-non-match":
return router.Config_IpIfNonMatch
case "ipondemand":
case "ipondemand", "ip_on_demand", "ip-on-demand":
return router.Config_IpOnDemand
default:
return router.Config_AsIs