mirror of https://github.com/ehang-io/nps
Update https.go
parent
4d97b0099c
commit
09293f8ce9
|
@ -80,7 +80,7 @@ func (https *HttpsServer) Start() error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//change the host and header and set proxy setting
|
//change the host and header and set proxy setting
|
||||||
common.ChangeHostAndHeader(r, host.HostChange, host.HeaderChange, c.Conn.RemoteAddr().String(), s.addOrigin)
|
common.ChangeHostAndHeader(r, host.HostChange, host.HeaderChange, c.Conn.RemoteAddr().String(), https.addOrigin)
|
||||||
acceptConn := conn.NewConn(c)
|
acceptConn := conn.NewConn(c)
|
||||||
acceptConn.Rb = rb
|
acceptConn.Rb = rb
|
||||||
l.acceptConn <- acceptConn
|
l.acceptConn <- acceptConn
|
||||||
|
|
Loading…
Reference in New Issue