Update transport_internet.go

This commit is contained in:
xqzr 2025-06-25 04:48:32 +08:00 committed by GitHub
parent 8d5677059c
commit 621c8a03d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -544,7 +544,7 @@ func (c *REALITYConfig) Build() (proto.Message, error) {
}
default:
if _, err = strconv.Atoi(s); err == nil {
s = "127.0.0.1:" + s
s = "localhost:" + s
}
if _, _, err = net.SplitHostPort(s); err == nil {
c.Type = "tcp"