Skip to content

Commit 6c7f0f8

Browse files
committed
fix
1 parent cb2669b commit 6c7f0f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pproxy/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ def main():
623623
if args.pac:
624624
pactext = 'function FindProxyForURL(u,h){' + (f'var b=/^(:?{args.block.__self__.pattern})$/i;if(b.test(h))return "";' if args.block else '')
625625
for i, option in enumerate(args.rserver):
626-
pactext += (f'var m{i}=/^(:?{option.match.__self__.pattern})$/i;if(m{i}.test(h))' if option.match else '') + 'return "PROXY %(host)s";'
626+
pactext += (f'var m{i}=/^(:?{option.rule.__self__.pattern})$/i;if(m{i}.test(h))' if option.rule else '') + 'return "PROXY %(host)s";'
627627
args.httpget[args.pac] = pactext+'return "DIRECT";}'
628628
args.httpget[args.pac+'/all'] = 'function FindProxyForURL(u,h){return "PROXY %(host)s";}'
629629
args.httpget[args.pac+'/none'] = 'function FindProxyForURL(u,h){return "DIRECT";}'

0 commit comments

Comments
 (0)