Project

General

Profile

cntlm.patch

Emmanuel GARETTE, 08/24/2015 10:31 PM

Download (757 Bytes)

View differences:

./forward.c 2015-08-24 21:52:07.000000000 +0200
505 505
				 */
506 506
				if (data[0]->http_version >= 11)
507 507
					data[0]->headers = hlist_mod(data[0]->headers, "Proxy-Connection", "keep-alive", 1);
508

  
508
                    data[0]->headers = hlist_mod(data[0]->headers, "X-Forwarded-For", inet_ntoa(caddr.sin_addr), 1);
509 509
				/*
510
				 * Also remove runaway P-A from the client (e.g. Basic from N-t-B), which might
510
				 * Also remove runaway P-A from the client (e.g. Basic from N-t-B), which might
511 511
				 * cause some ISAs to deny us, even if the connection is already auth'd.
512 512
				 */
513 513
				while (hlist_get(data[loop]->headers, "Proxy-Authorization")) {