Skip to content

Commit 946a7a2

Browse files
committed
Refine DomainStrategy config
1 parent b9c5de9 commit 946a7a2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

infra/conf/router.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ func (c *RouterConfig) getDomainStrategy() router.Config_DomainStrategy {
5252
}
5353

5454
switch strings.ToLower(ds) {
55-
case "alwaysip":
55+
case "alwaysip", "always_ip", "always-ip":
5656
return router.Config_UseIp
57-
case "ipifnonmatch":
57+
case "ipifnonmatch", "ip_if_non_match", "ip-if-non-match":
5858
return router.Config_IpIfNonMatch
59-
case "ipondemand":
59+
case "ipondemand", "ip_on_demand", "ip-on-demand":
6060
return router.Config_IpOnDemand
6161
default:
6262
return router.Config_AsIs

0 commit comments

Comments
 (0)