mirror of
https://github.com/fatedier/frp.git
synced 2025-07-23 22:33:30 +07:00
use net.JoinHostPort instead of fmt.Sprintf (#2791)
This commit is contained in:
@ -48,7 +48,7 @@ func readHTTPConnectRequest(rd io.Reader) (host string, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
host = util.GetHostFromAddr(req.Host)
|
||||
host, _ = util.CanonicalHost(req.Host)
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user