yakit icon indicating copy to clipboard operation
yakit copied to clipboard

Yak GRPC 双栈主机,在指定 host 参数的情况下会绑定至 v6 地址

Open trganda opened this issue 1 year ago • 0 comments

v4/v6 双栈云主机,操作系统 ubuntu 22.04,内核版本如下:

uname -a
Linux node3 6.5.0-1024-oracle #24~22.04.1-Ubuntu SMP Thu May 23 16:46:40 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

使用 Yak 设置远程连接,指定 --host 0.0.0.0

yak grpc --host 0.0.0.0 --port 8080 --secret 'xxx' --tls &

端口会被绑定到 v6 地址上

netstat -tln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp6       0      0 :::8080                :::*                    LISTEN

trganda avatar Jan 21 '25 10:01 trganda