Closed monkey-wenjun closed 1 year ago
.stdout(Stdio::null())
和 .stderr(Stdio::null())
后重新编译,就能看到 wg-go 返回的报错
https://github.com/PinkD/corplink-rs/blob/9986748727280a88af6efb7cb49d9a5b731b236b/src/wg.rs#L64-L79Manjaro Linux rolling 6位, gnome 42.4 用的是arch 的包直接pacman 安装的
start wg-corplink for corplink launch wg-corplink with env: {} socket file /var/run/wireguard/corplink.sock not ready, sleep 1s try to connect unix sock: /var/run/wireguard/corplink.sock send config to uapi failed to config interface with uapi for corplink: uapi returns unexpected result: errno=-55
login success try to connect found 3 vpn(s) check if udp vpn 11.12.22.3:103 is available available try to get wg conf from remote 2fa code generated: 113381, 22 seconds left start wg-corplink for corplink launch wg-corplink with env: {} socket file /var/run/wireguard/corplink.sock not ready, sleep 1s ┌──────────────────────────────────────────────────────┐ │ │ │ Running wireguard-go is not required because this │ │ kernel has first class support for WireGuard. For │ │ information on installing the kernel module, │ │ please visit: │ │ https://www.wireguard.com/install/ │ │ │ └──────────────────────────────────────────────────────┘ try to connect unix sock: /var/run/wireguard/corplink.sock send config to uapi ERROR: (corplink) 2022/09/06 20:24:09 IPC error -55: failed to set addr to 17.11.0.0/16 for corplink: file exists ERROR: (corplink) 2022/09/06 20:24:09 IPC error -55: failed to set addr to 17.11.0.0/16 for corplink: file exists failed to config interface with uapi for corplink: uapi returns unexpected result: errno=-55
变更了IP信息
看起来是路由已存在,有两种可能:
ip route
命令查看是否有该路由。如果有,可以考虑使用 ip route delete 17.11.0.0/16
删掉感谢支持,找到原因了,docker 的IP段和这个冲突了
failed to config interface with uapi for corplink: uapi returns unexpected result: errno=-55