Skip to content

Commit d418401

Browse files
authored
Router: Remove the deprecated UseIP option (#5323)
1 parent f14fd1c commit d418401

File tree

3 files changed

+14
-21
lines changed

3 files changed

+14
-21
lines changed

app/router/config.pb.go

Lines changed: 12 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/router/config.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ message Config {
147147
// Use domain as is.
148148
AsIs = 0;
149149

150-
// Always resolve IP for domains.
151-
UseIp = 1;
150+
// [Deprecated] Always resolve IP for domains.
151+
// UseIp = 1;
152152

153153
// Resolve to IP if the domain doesn't match any rules.
154154
IpIfNonMatch = 2;

infra/conf/router.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ func (c *RouterConfig) getDomainStrategy() router.Config_DomainStrategy {
8383
}
8484

8585
switch strings.ToLower(ds) {
86-
case "alwaysip":
87-
return router.Config_UseIp
8886
case "ipifnonmatch":
8987
return router.Config_IpIfNonMatch
9088
case "ipondemand":

0 commit comments

Comments
 (0)