Skip to content

Commit

Permalink
fix: Bypass proxy for localhost and link-local addresses when using P…
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 committed Jan 8, 2019
1 parent 9f71fc2 commit 669b5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/api-session-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ describe('session module', () => {
server.listen(0, '127.0.0.1', () => {
const config = { pacScript: `http://127.0.0.1:${server.address().port}` }
customSession.setProxy(config, () => {
customSession.resolveProxy('http://localhost', (proxy) => {
customSession.resolveProxy('https://google.com', (proxy) => {
assert.strictEqual(proxy, 'PROXY myproxy:8132')
done()
})
Expand Down

0 comments on commit 669b5d6

Please sign in to comment.