refs #1508 Fix socks5 proxy hostname for new version of proxy agent
This commit is contained in:
parent
4e00790d78
commit
7f1574dd18
|
@ -9,7 +9,7 @@
|
|||
"author": "Akira Fukushima <h3.poteto@gmail.com> (https://github.com/h3poteto)",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"megalodon": "5.0.1"
|
||||
"megalodon": "*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"assert": "^2.0.0",
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
"author": "h3poteto",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"megalodon": "5.0.1",
|
||||
"megalodon": "*",
|
||||
"typescript": "4.9.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -47,7 +47,7 @@ const proxyAgent = (proxyConfig: ProxyConfig): HttpsProxyAgent | SocksProxyAgent
|
|||
case 'socks4a': {
|
||||
let options: SocksProxyAgentOptions = {
|
||||
type: 4,
|
||||
host: proxyConfig.host,
|
||||
hostname: proxyConfig.host,
|
||||
port: proxyConfig.port
|
||||
}
|
||||
if (proxyConfig.auth) {
|
||||
|
@ -64,7 +64,7 @@ const proxyAgent = (proxyConfig: ProxyConfig): HttpsProxyAgent | SocksProxyAgent
|
|||
case 'socks': {
|
||||
let options: SocksProxyAgentOptions = {
|
||||
type: 5,
|
||||
host: proxyConfig.host,
|
||||
hostname: proxyConfig.host,
|
||||
port: proxyConfig.port
|
||||
}
|
||||
if (proxyConfig.auth) {
|
||||
|
|
Loading…
Reference in a new issue