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)",
|
"author": "Akira Fukushima <h3.poteto@gmail.com> (https://github.com/h3poteto)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"megalodon": "5.0.1"
|
"megalodon": "*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"assert": "^2.0.0",
|
"assert": "^2.0.0",
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"author": "h3poteto",
|
"author": "h3poteto",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"megalodon": "5.0.1",
|
"megalodon": "*",
|
||||||
"typescript": "4.9.4"
|
"typescript": "4.9.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -47,7 +47,7 @@ const proxyAgent = (proxyConfig: ProxyConfig): HttpsProxyAgent | SocksProxyAgent
|
||||||
case 'socks4a': {
|
case 'socks4a': {
|
||||||
let options: SocksProxyAgentOptions = {
|
let options: SocksProxyAgentOptions = {
|
||||||
type: 4,
|
type: 4,
|
||||||
host: proxyConfig.host,
|
hostname: proxyConfig.host,
|
||||||
port: proxyConfig.port
|
port: proxyConfig.port
|
||||||
}
|
}
|
||||||
if (proxyConfig.auth) {
|
if (proxyConfig.auth) {
|
||||||
|
@ -64,7 +64,7 @@ const proxyAgent = (proxyConfig: ProxyConfig): HttpsProxyAgent | SocksProxyAgent
|
||||||
case 'socks': {
|
case 'socks': {
|
||||||
let options: SocksProxyAgentOptions = {
|
let options: SocksProxyAgentOptions = {
|
||||||
type: 5,
|
type: 5,
|
||||||
host: proxyConfig.host,
|
hostname: proxyConfig.host,
|
||||||
port: proxyConfig.port
|
port: proxyConfig.port
|
||||||
}
|
}
|
||||||
if (proxyConfig.auth) {
|
if (proxyConfig.auth) {
|
||||||
|
|
Loading…
Reference in a new issue