mirror of
https://github.com/ehang-io/nps.git
synced 2025-08-31 17:56:56 +00:00
http proxy bug
This commit is contained in:
@@ -105,7 +105,7 @@ func ProcessHttp(c *conn.Conn, s *TunnelModeServer) error {
|
||||
return err
|
||||
}
|
||||
if r.Method == "CONNECT" {
|
||||
c.Write([]byte("HTTP/1.1 200 Connection Established\r\n"))
|
||||
c.Write([]byte("HTTP/1.1 200 Connection established\r\n\r\n"))
|
||||
rb = nil
|
||||
}
|
||||
if err := s.auth(r, c, s.task.Client.Cnf.U, s.task.Client.Cnf.P); err != nil {
|
||||
|
Reference in New Issue
Block a user