mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-07-22 01:44:14 +00:00
VLESS fallbacks: dest
defaults to "127.0.0.1" -> "localhost" (#4840)
https://github.com/XTLS/Xray-examples/issues/234#issuecomment-3091319391
This commit is contained in:
parent
10dbeb4335
commit
abd551e9f7
4 changed files with 4 additions and 4 deletions
|
@ -155,7 +155,7 @@ func (c *TrojanServerConfig) 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