mirror of
https://github.com/fatedier/frp.git
synced 2025-07-27 15:45:39 +00:00
tcpmux: support authentication (#3345)
This commit is contained in:
@@ -145,7 +145,10 @@ func (r *Request) Do() (*Response, error) {
|
||||
err error
|
||||
)
|
||||
|
||||
addr := net.JoinHostPort(r.addr, strconv.Itoa(r.port))
|
||||
addr := r.addr
|
||||
if r.port > 0 {
|
||||
addr = net.JoinHostPort(r.addr, strconv.Itoa(r.port))
|
||||
}
|
||||
// for protocol http and https
|
||||
if r.protocol == "http" || r.protocol == "https" {
|
||||
return r.sendHTTPRequest(r.method, fmt.Sprintf("%s://%s%s", r.protocol, addr, r.path),
|
||||
|
Reference in New Issue
Block a user