Use 127.0.0.1 rather than localhost to avoid issues with ipv6, and long timeout connecting the socket

This commit is contained in:
Ben Jackson 2021-01-08 15:54:45 +00:00
commit 4206d0e57c
3 changed files with 3 additions and 3 deletions

View file

@ -62,7 +62,7 @@ function! vimspector#internal#channel#StartDebugSession( config ) abort
\ )
endif
let l:addr = get( a:config, 'host', 'localhost' ) . ':' . a:config[ 'port' ]
let l:addr = get( a:config, 'host', '127.0.0.1' ) . ':' . a:config[ 'port' ]
echo 'Connecting to ' . l:addr . '... (waiting fo up to 10 seconds)'
let s:ch = ch_open( l:addr,

View file

@ -66,7 +66,7 @@ function! vimspector#internal#neochannel#StartDebugSession( config ) abort
endtry
endif
let l:addr = get( a:config, 'host', 'localhost' ) . ':' . a:config[ 'port' ]
let l:addr = get( a:config, 'host', '127.0.0.1' ) . ':' . a:config[ 'port' ]
let attempt = 1
while attempt <= 10

View file

@ -200,7 +200,7 @@
"properties": {
"host": {
"type": "string",
"default": "localhost",
"default": "127.0.0.1",
"description": "Connect to this host in multi-session mode"
},
"port": {