refactor: pac修改
parent
a8ef2bcf66
commit
f0bda94347
|
@ -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
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue