mirror of
https://github.com/golang/go
synced 2024-11-18 17:04:41 -07:00
internal/lsp/lsprpc: use localhost for remote gopls debug interface
When using the experimental feature where gopls runs as deamon, the remote is spawned with debug enabled. It currently exposes the debug interface to all network interfaces. This should be configurable in the future, but until then we should at least keep it on the localhost interface. This change starts the debug on the local interface instead of all. Updates golang/go#34111 Change-Id: I3184268dd434ae11ff5f8c3c57a229d22c158196 Reviewed-on: https://go-review.googlesource.com/c/tools/+/221697 Run-TryBot: Robert Findley <rfindley@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
This commit is contained in:
parent
71482053b8
commit
066e0c0245
@ -318,7 +318,7 @@ func startRemote(goplsPath, network, address string) error {
|
||||
args := []string{"serve",
|
||||
"-listen", fmt.Sprintf(`%s;%s`, network, address),
|
||||
"-listen.timeout", "1m",
|
||||
"-debug", ":0",
|
||||
"-debug", "localhost:0",
|
||||
"-logfile", "auto",
|
||||
}
|
||||
cmd := exec.Command(goplsPath, args...)
|
||||
|
Loading…
Reference in New Issue
Block a user