mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-26 13:14:14 +00:00
Fallback: default dest
127.0.0.1 > localhost
Fix https://github.com/XTLS/Xray-examples/issues/234
This commit is contained in:
parent
cb1afb33e6
commit
2203dbb34e
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ func (c *VLessInboundConfig) Build() (proto.Message, error) {
|
|||
}
|
||||
} else {
|
||||
if _, err := strconv.Atoi(fb.Dest); err == nil {
|
||||
fb.Dest = "127.0.0.1:" + fb.Dest
|
||||
fb.Dest = "localhost:" + fb.Dest
|
||||
}
|
||||
if _, _, err := net.SplitHostPort(fb.Dest); err == nil {
|
||||
fb.Type = "tcp"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue