mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-05-24 16:38:27 +00:00
add Socks5ClientHttpAgent, Socks5ClientHttpsAgent
This commit is contained in:
parent
be8d6c798a
commit
a712e2ea31
@ -16,7 +16,9 @@
|
||||
"iconv-lite": "^0.4.4",
|
||||
"juicer": "^0.6.6-stable",
|
||||
"nedb": "^0.11.0",
|
||||
"ws": "^0.4.32"
|
||||
"ws": "^0.4.32",
|
||||
"socks5-http-client": "^0.1.6",
|
||||
"socks5-https-client": "^0.2.2"
|
||||
},
|
||||
"devDependencies": {},
|
||||
"scripts": {
|
||||
|
2
proxy.js
2
proxy.js
@ -4,6 +4,8 @@ try{
|
||||
GLOBAL.util['iconv-lite'] = require("iconv-lite");
|
||||
GLOBAL.util['colorful'] = require("colorful");
|
||||
GLOBAL.util['path'] = require("path");
|
||||
GLOBAL.util['Socks5ClientHttpAgent'] = require('socks5-http-client/lib/Agent');
|
||||
GLOBAL.util['Socks5ClientHttpsAgent'] = require('socks5-https-client/lib/Agent');
|
||||
}catch(e){}
|
||||
|
||||
var http = require('http'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user