Skip to content

Commit

Permalink
goLanguageServer: fix proxy update logic
Browse files Browse the repository at this point in the history
Fixes golang#254

Change-Id: Ifc4b314bb4ba0c6ec8dfa5f57d935829255d5345
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/239739
Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
  • Loading branch information
stamblerre committed Jun 24, 2020
1 parent 3e1f0ad commit c43eae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goLanguageServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ async function goProxyRequest(tool: Tool, endpoint: string): Promise<any> {
}
// Try each URL set in the user's GOPROXY environment variable.
// If none is set, don't make the request.
const proxies = output.trim().split(',|');
const proxies = output.trim().split(/,|\|/);
for (const proxy of proxies) {
if (proxy === 'direct') {
continue;
Expand Down

0 comments on commit c43eae6

Please sign in to comment.