diff --git a/infra/conf/router.go b/infra/conf/router.go index ae2ffd50..1e005bf2 100644 --- a/infra/conf/router.go +++ b/infra/conf/router.go @@ -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