Skip to content

Commit

Permalink
Use 127.0.0.1 to avoid issue when localhost resolves to ::1
Browse files Browse the repository at this point in the history
references #1242
  • Loading branch information
belav committed Apr 26, 2024
1 parent 488ddab commit e7b04ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Src/CSharpier.VSCode/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [1.7.2]
- Fix issue with csharpier server not working when localhost resolved to IPv6 ::1

## [1.7.1]
- Fix issue with csharpier server not supporting dotnet root

Expand Down
2 changes: 1 addition & 1 deletion Src/CSharpier.VSCode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "csharpier-vscode",
"displayName": "CSharpier - Code formatter",
"description": "Code formatter using csharpier",
"version": "1.7.1",
"version": "1.7.2",
"publisher": "csharpier",
"author": "CSharpier",
"homepage": "https://marketplace.visualstudio.com/items?itemName=csharpier.csharpier-vscode",
Expand Down
2 changes: 1 addition & 1 deletion Src/CSharpier.VSCode/src/CSharpierProcessServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class CSharpierProcessServer implements ICSharpierProcess2 {
}

try {
const url = "http://localhost:" + this.port + "/format";
const url = "http://127.0.0.1:" + this.port + "/format";

const response = await fetch(url, {
method: "POST",
Expand Down

0 comments on commit e7b04ad

Please sign in to comment.