fix(clients): fix vim & intellij plugin to run node with prefer ipv4 options. (#615)

r0.4
Zhiming Ma 2023-10-23 12:42:15 +08:00 committed by GitHub
parent 8ea15ceb0e
commit 573196b9d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -64,7 +64,8 @@ class Agent : ProcessAdapter() {
fun open() {
val node = getNodeBinary()
val script = getNodeScript()
val cmd = GeneralCommandLine(node.absolutePath, script.absolutePath)
val options = "--dns-result-order=ipv4first"
val cmd = GeneralCommandLine(node.absolutePath, options, script.absolutePath)
process = object : KillableProcessHandler(cmd) {
override fun readerOptions(): BaseOutputReader.Options {
return BaseOutputReader.Options.forMostlySilentProcess()

View File

@ -83,7 +83,7 @@ function! tabby#OnVimEnter()
return
endif
let command = node_binary . ' ' . g:tabby_node_script
let command = node_binary . ' --dns-result-order=ipv4first ' . g:tabby_node_script
call tabby#agent#Open(command)
call tabby#keybindings#Map()