Convert proxy.host to lowercase for ProxyAuth matching. Fix #727.

This commit is contained in:
FelisCatus 2016-03-17 16:30:47 +08:00
parent b67790eb83
commit 45a8ad2f15

View File

@ -28,7 +28,7 @@ module.exports = class ProxyAuth
) )
@listening = true @listening = true
_keyForProxy: (proxy) -> "#{proxy.host}:#{proxy.port}" _keyForProxy: (proxy) -> "#{proxy.host.toLowerCase()}:#{proxy.port}"
setProxies: (profiles) -> setProxies: (profiles) ->
@_proxies = {} @_proxies = {}
@_fallbacks = [] @_fallbacks = []