Merge pull request #336 from puremourning/localhost
Use 127.0.0.1 rather than localhost to avoid issues with ipv6, and lo…
This commit is contained in:
commit
44a0f819e2
3 changed files with 3 additions and 3 deletions
|
|
@ -62,7 +62,7 @@ function! vimspector#internal#channel#StartDebugSession( config ) abort
|
||||||
\ )
|
\ )
|
||||||
endif
|
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)'
|
echo 'Connecting to ' . l:addr . '... (waiting fo up to 10 seconds)'
|
||||||
let s:ch = ch_open( l:addr,
|
let s:ch = ch_open( l:addr,
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ function! vimspector#internal#neochannel#StartDebugSession( config ) abort
|
||||||
endtry
|
endtry
|
||||||
endif
|
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
|
let attempt = 1
|
||||||
while attempt <= 10
|
while attempt <= 10
|
||||||
|
|
|
||||||
|
|
@ -200,7 +200,7 @@
|
||||||
"properties": {
|
"properties": {
|
||||||
"host": {
|
"host": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "localhost",
|
"default": "127.0.0.1",
|
||||||
"description": "Connect to this host in multi-session mode"
|
"description": "Connect to this host in multi-session mode"
|
||||||
},
|
},
|
||||||
"port": {
|
"port": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue