no message

This commit is contained in:
arraykeys
2018-05-07 20:48:32 +08:00
parent 61872133b1
commit 905c1eac63

View File

@ -307,7 +307,7 @@ func (s *SPS) OutToTCP(inConn *net.Conn) (err error) {
if *s.cfg.ParentServiceType == "http" { if *s.cfg.ParentServiceType == "http" {
//http parent //http parent
pb := new(bytes.Buffer) 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 //Proxy-Authorization:\r\n
u := "" u := ""
if *s.cfg.ParentAuth != "" { if *s.cfg.ParentAuth != "" {