mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-26 13:14:14 +00:00
Update transport_internet.go
This commit is contained in:
parent
8d5677059c
commit
621c8a03d7
1 changed files with 1 additions and 1 deletions
|
@ -544,7 +544,7 @@ func (c *REALITYConfig) Build() (proto.Message, error) {
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
if _, err = strconv.Atoi(s); err == nil {
|
if _, err = strconv.Atoi(s); err == nil {
|
||||||
s = "127.0.0.1:" + s
|
s = "localhost:" + s
|
||||||
}
|
}
|
||||||
if _, _, err = net.SplitHostPort(s); err == nil {
|
if _, _, err = net.SplitHostPort(s); err == nil {
|
||||||
c.Type = "tcp"
|
c.Type = "tcp"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue