소스 검색

Add WPAD paths to the PAC file

RichardG867 5 년 전
부모
커밋
0412aabcb3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      waybackproxy.py

+ 1 - 1
waybackproxy.py

@@ -58,7 +58,7 @@ class Handler(socketserver.BaseRequestHandler):
 				auth = base64.b64decode(ll[21:])
 		
 		try:
-			if path == '/proxy.pac':
+			if path in ('/proxy.pac', '/wpad.dat', '/wpad.da'):
 				# PAC file to bypass QUICK_IMAGES requests
 				pac  = http_version.encode('ascii', 'ignore') + b''' 200 OK\r\n'''
 				pac += b'''Content-Type: application/x-ns-proxy-autoconfig\r\n'''