Skip to content

Commit

Permalink
explicitly bind puppet-language-server to 127.0.0.1
Browse files Browse the repository at this point in the history
vimspector connects explicitly to the ipv4 localhost address. This is
meant to avoid irregularities caused by using "localhost" which may end
up being ::1 for some hosts instead. Both vimspector and all the LSP
servers need to agree on the address family being used.

IPv6 has gained some more traction in the recent years but it's still
not reached enough people so that we could instead default to ::1 for
all.
  • Loading branch information
lelutin committed Aug 18, 2024
1 parent 917ea42 commit a4684f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python3/vimspector/gadgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@
"${gadgetDir}/puppet-editor-services/puppet-debugserver",
"--port",
"${unusedLocalPort}",
"--ip 127.0.0.1"
],
'name': 'puppet-debugserver',
'configuration': {
Expand Down

0 comments on commit a4684f5

Please sign in to comment.