refactor: pac修改

pull/67/head
xiaojunnuo 2020-12-03 15:23:13 +08:00
parent a8ef2bcf66
commit f0bda94347
4 changed files with 22 additions and 11458 deletions

View File

@ -89,6 +89,7 @@ module.exports = {
proxy: 'ajax.loli.net',
test: 'ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js'
}
},
'fonts.googleapis.com': {
'.*': {

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,6 @@
const pac = require('../src/lib/interceptor/impl/source/pac')
const pac = require('../src/lib/proxy/middleware/source/pac')
const string = pac.FindProxyForURL('https://www.facebook.com', 'www.facebook.com')
console.log(string)
const string2 = pac.FindProxyForURL('https://http2.golang.org', 'http2.golang.org')
console.log(string2)