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
|
||||
|
||||
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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue