Signed-off-by: arraykeys@gmail.com <arraykeys@gmail.com>
This commit is contained in:
@ -203,7 +203,7 @@ func (s *SPS) OutToTCP(inConn *net.Conn) (err error) {
|
|||||||
//ask parent for connect to target address
|
//ask parent for connect to target address
|
||||||
if *s.cfg.ParentServiceType == "http" {
|
if *s.cfg.ParentServiceType == "http" {
|
||||||
//http parent
|
//http parent
|
||||||
fmt.Fprintf(outConn, "CONNECT %s\r\n", address)
|
fmt.Fprintf(outConn, "CONNECT %s HTTP/1.1\r\n", address)
|
||||||
reply := make([]byte, 100)
|
reply := make([]byte, 100)
|
||||||
n, err = outConn.Read(reply)
|
n, err = outConn.Read(reply)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user