From 946a7a2647d93acd88a472f1b1ab2f67992e803b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E3=81=AE=E3=81=8B=E3=81=88=E3=81=A7?= Date: Wed, 7 Apr 2021 22:53:21 +0800 Subject: [PATCH] Refine DomainStrategy config --- infra/conf/router.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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