mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 18:45:40 +08:00
Send Connection instead of Proxy-Connection to parent proxy
This commit is contained in:
parent
0376e54196
commit
951304e18e
@ -53,7 +53,7 @@ int clientnegotiate(struct chain * redir, struct clientparam * param, struct soc
|
|||||||
if(*SAFAMILY(addr) == AF_INET6) buf[len++] = ']';
|
if(*SAFAMILY(addr) == AF_INET6) buf[len++] = ']';
|
||||||
}
|
}
|
||||||
len += sprintf((char *)buf + len,
|
len += sprintf((char *)buf + len,
|
||||||
":%hu HTTP/1.0\r\nProxy-Connection: keep-alive\r\n", ntohs(*SAPORT(addr)));
|
":%hu HTTP/1.0\r\nConnection: keep-alive\r\n", ntohs(*SAPORT(addr)));
|
||||||
if(user){
|
if(user){
|
||||||
len += sprintf((char *)buf + len, "Proxy-authorization: basic ");
|
len += sprintf((char *)buf + len, "Proxy-authorization: basic ");
|
||||||
sprintf((char *)username, "%.128s:%.128s", user, pass?pass:(unsigned char *)"");
|
sprintf((char *)username, "%.128s:%.128s", user, pass?pass:(unsigned char *)"");
|
||||||
|
Loading…
Reference in New Issue
Block a user