File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff 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";}'
You can’t perform that action at this time.
0 commit comments