Skip to content

Commit 1444e61

Browse files
jinliming2chrmarti
authored andcommitted
fix: error when filling in the HTTP proxy address in IPv6 format (microsoft#77260, fixes microsoft#77259)
1 parent 200d66a commit 1444e61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Registry.as<IConfigurationRegistry>(Extensions.Configuration)
6969
properties: {
7070
'http.proxy': {
7171
type: 'string',
72-
pattern: '^https?://([^:]*(:[^@]*)?@)?([^:]+)(:\\d+)?/?$|^$',
72+
pattern: '^https?://([^:]*(:[^@]*)?@)?([^:]+|\\[[:0-9a-fA-F]+\\])(:\\d+)?/?$|^$',
7373
markdownDescription: localize('proxy', "The proxy setting to use. If not set, will be inherited from the `http_proxy` and `https_proxy` environment variables.")
7474
},
7575
'http.proxyStrictSSL': {

0 commit comments

Comments
 (0)