From c05d2611a62822b2acc13b8761a1083aed93fc0a Mon Sep 17 00:00:00 2001 From: Self Not Found Date: Fri, 16 Dec 2022 13:49:29 +0800 Subject: [PATCH] Replace socks with socks5 in proxy protocol The net/http package in arduino-cli supports socks5 as scheme rather than socks. Co-authored-by: per1234 --- .../src/browser/dialogs/settings/settings-component.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arduino-ide-extension/src/browser/dialogs/settings/settings-component.tsx b/arduino-ide-extension/src/browser/dialogs/settings/settings-component.tsx index 414cee7d7..a5249326b 100644 --- a/arduino-ide-extension/src/browser/dialogs/settings/settings-component.tsx +++ b/arduino-ide-extension/src/browser/dialogs/settings/settings-component.tsx @@ -406,7 +406,7 @@ export class SettingsComponent extends React.Component< } onChange={this.socksProtocolDidChange} /> - SOCKS + SOCKS5
@@ -682,7 +682,7 @@ export class SettingsComponent extends React.Component< ): void => { if (this.state.network !== 'none') { const network = this.cloneProxySettings; - network.protocol = event.target.checked ? 'http' : 'socks'; + network.protocol = event.target.checked ? 'http' : 'socks5'; this.setState({ network }); } }; @@ -692,7 +692,7 @@ export class SettingsComponent extends React.Component< ): void => { if (this.state.network !== 'none') { const network = this.cloneProxySettings; - network.protocol = event.target.checked ? 'socks' : 'http'; + network.protocol = event.target.checked ? 'socks5' : 'http'; this.setState({ network }); } };