mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 05:17:35 +00:00
feat(proxy): socks5 support (#933)
This commit is contained in:
+2
-1
@@ -291,7 +291,8 @@ const page = {
|
||||
|
||||
const proxy = {
|
||||
address: envOrString(process.env.PROXY_ADDRESS),
|
||||
port: envOrNumber(process.env.PROXY_PORT, 80)
|
||||
port: envOrNumber(process.env.PROXY_PORT, 80),
|
||||
protocol: envOrString(process.env.PROXY_PROTOCOL, 'http')
|
||||
};
|
||||
|
||||
// Check for deprecated configuration values
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ async function main() {
|
||||
// Add the address of the proxy server if defined
|
||||
if (config.proxy.address) {
|
||||
args.push(
|
||||
`--proxy-server=http://${config.proxy.address}:${config.proxy.port}`
|
||||
`--proxy-server=${config.proxy.protocol}://${config.proxy.address}:${config.proxy.port}`
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user