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:
mergify[bot] 2021-01-08 16:08:12 +00:00 committed by GitHub
commit 44a0f819e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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": {