mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2024-12-30 02:37:01 +00:00
Fix: HTTP proxy basic auth error (#266)
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@ func (h *HTTP) shakeHand(metadata *M.Metadata, rw io.ReadWriter) error {
|
||||
}
|
||||
|
||||
if h.user != "" && h.pass != "" {
|
||||
req.Header.Set("Proxy-Authorization", basicAuth(h.user, h.pass))
|
||||
req.Header.Set("Proxy-Authorization", fmt.Sprintf("Basic %s", basicAuth(h.user, h.pass)))
|
||||
}
|
||||
|
||||
if err := req.Write(rw); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user