Skip to content

Commit 4c1e4bb

Browse files
committed
Allow additional socks schemes (microsoft#158669)
1 parent 91749da commit 4c1e4bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/platform/request/common/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function registerProxyConfigurations(scope: ConfigurationScope): void {
138138
properties: {
139139
'http.proxy': {
140140
type: 'string',
141-
pattern: '^(https?|socks5?)://([^:]*(:[^@]*)?@)?([^:]+|\\[[:0-9a-fA-F]+\\])(:\\d+)?/?$|^$',
141+
pattern: '^(https?|socks|socks4a?|socks5h?)://([^:]*(:[^@]*)?@)?([^:]+|\\[[:0-9a-fA-F]+\\])(:\\d+)?/?$|^$',
142142
markdownDescription: localize('proxy', "The proxy setting to use. If not set, will be inherited from the `http_proxy` and `https_proxy` environment variables."),
143143
restricted: true
144144
},

0 commit comments

Comments
 (0)