From 905c1eac63219c6216ef8f6173b066722a2787f5 Mon Sep 17 00:00:00 2001 From: arraykeys Date: Mon, 7 May 2018 20:48:32 +0800 Subject: [PATCH] no message --- services/sps.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/sps.go b/services/sps.go index 30789eb..665f9ed 100644 --- a/services/sps.go +++ b/services/sps.go @@ -307,7 +307,7 @@ func (s *SPS) OutToTCP(inConn *net.Conn) (err error) { if *s.cfg.ParentServiceType == "http" { //http parent pb := new(bytes.Buffer) - pb.Write([]byte(fmt.Sprintf("CONNECT %s HTTP/1.1\r\nHost:%s\r\nProxy-Connection: Keep-Alive\r\n", address, address))) + pb.Write([]byte(fmt.Sprintf("CONNECT %s HTTP/1.1\r\nHost:%s\r\nProxy-Connection: Keep-Alive\r\n", address, strings.TrimRight(address,":80")))) //Proxy-Authorization:\r\n u := "" if *s.cfg.ParentAuth != "" {