Skip to content

Commit

Permalink
Map localhost -> 127.0.0.1
Browse files Browse the repository at this point in the history
* Addressing #2310
  • Loading branch information
PEZ committed Sep 17, 2023
1 parent 21c1d64 commit b05c4a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nrepl/jack-in-terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@ export class JackInTerminal implements vscode.Pseudoterminal {
const [_, port1, host1, host2, port2, port3] = msg.match(
/(?:Started nREPL server|nREPL server started)[^\r\n]+?(?:(?:on port (\d+)(?: on host (\S+))?)|([^\s/]+):(\d+))|.*?(\d+) TODO/
);
const host = host1 ? host1 : host2 ? host2 : '127.0.0.1';
this.whenREPLStarted(
this.process,
host1 ? host1 : host2 ? host2 : 'localhost',
host === 'localhost' ? '127.0.0.1' : host,
port1 ? port1 : port2 ? port2 : port3
);
}
Expand Down

0 comments on commit b05c4a0

Please sign in to comment.