diff --git a/adapters/outbound/http.go b/adapters/outbound/http.go index 4ac7479a..48568836 100644 --- a/adapters/outbound/http.go +++ b/adapters/outbound/http.go @@ -58,9 +58,9 @@ func (h *Http) shakeHand(metadata *C.Metadata, rw io.ReadWriter) error { var buf bytes.Buffer var err error - addr := net.JoinHostPort(metadata.Host, metadata.Port) + addr := net.JoinHostPort(metadata.String(), metadata.Port) buf.WriteString("CONNECT " + addr + " HTTP/1.1\r\n") - buf.WriteString("Host: " + metadata.Host + "\r\n") + buf.WriteString("Host: " + metadata.String() + "\r\n") buf.WriteString("Proxy-Connection: Keep-Alive\r\n") if h.user != "" && h.pass != "" {