mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-23 17:11:28 +00:00
Refine DomainStrategy config
This commit is contained in:
parent
b9c5de96e7
commit
946a7a2647
|
@ -52,11 +52,11 @@ func (c *RouterConfig) getDomainStrategy() router.Config_DomainStrategy {
|
||||||
}
|
}
|
||||||
|
|
||||||
switch strings.ToLower(ds) {
|
switch strings.ToLower(ds) {
|
||||||
case "alwaysip":
|
case "alwaysip", "always_ip", "always-ip":
|
||||||
return router.Config_UseIp
|
return router.Config_UseIp
|
||||||
case "ipifnonmatch":
|
case "ipifnonmatch", "ip_if_non_match", "ip-if-non-match":
|
||||||
return router.Config_IpIfNonMatch
|
return router.Config_IpIfNonMatch
|
||||||
case "ipondemand":
|
case "ipondemand", "ip_on_demand", "ip-on-demand":
|
||||||
return router.Config_IpOnDemand
|
return router.Config_IpOnDemand
|
||||||
default:
|
default:
|
||||||
return router.Config_AsIs
|
return router.Config_AsIs
|
||||||
|
|
Loading…
Reference in a new issue