Update https.go

pull/825/head
bboysoul 2021-02-01 09:51:28 +08:00 committed by GitHub
parent 63ba9774f9
commit 4d97b0099c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -79,6 +79,8 @@ func (https *HttpsServer) Start() error {
}
}
}
//change the host and header and set proxy setting
common.ChangeHostAndHeader(r, host.HostChange, host.HeaderChange, c.Conn.RemoteAddr().String(), s.addOrigin)
acceptConn := conn.NewConn(c)
acceptConn.Rb = rb
l.acceptConn <- acceptConn