mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
Remove redundant size hint for request info map
This commit is contained in:
parent
f1454e91f5
commit
c6f022b293
2 changed files with 2 additions and 2 deletions
|
|
@ -93,7 +93,7 @@ func (muxer *HTTPConnectTCPMuxer) auth(c net.Conn, username, password string, re
|
|||
}
|
||||
|
||||
func (muxer *HTTPConnectTCPMuxer) getHostFromHTTPConnect(c net.Conn) (net.Conn, map[string]string, error) {
|
||||
reqInfoMap := make(map[string]string, 0)
|
||||
reqInfoMap := make(map[string]string)
|
||||
sc, rd := libnet.NewSharedConn(c)
|
||||
|
||||
host, httpUser, httpPwd, err := muxer.readHTTPConnectRequest(rd)
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ func NewHTTPSMuxer(listener net.Listener, timeout time.Duration) (*HTTPSMuxer, e
|
|||
}
|
||||
|
||||
func GetHTTPSHostname(c net.Conn) (_ net.Conn, _ map[string]string, err error) {
|
||||
reqInfoMap := make(map[string]string, 0)
|
||||
reqInfoMap := make(map[string]string)
|
||||
sc, rd := libnet.NewSharedConn(c)
|
||||
|
||||
clientHello, err := readClientHello(rd)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue