Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

v1.2.4版及v1.2.4-patch.1版命令行模式启动报错却没有影响使用 #194

Closed
egg1234 opened this issue Dec 9, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@egg1234
Copy link

egg1234 commented Dec 9, 2022

服务器ubuntu 18.04,有一张网卡,还有一个TUN卡
启动下面命令行
vs -L=vmess://a684455c-b14f-11ea-bf0d-42010aaa0003@0.0.0.0:4434

报告错误,但是没有影响正常使用,在另外一台ubuntu 18上只有网卡,就没有报错

2022/12/09 11:17:33 No -c provided and default "client.toml" doesn't exist
2022/12/09 11:17:33 trying listenURL and dialURL
2022-12-09 11:17:33.757 INFO Program started
2022-12-09 11:17:33.757 INFO zap log init complete. {"logfile": "/usr/lib/systemd/system/vs_log"}
2022-12-09 11:17:33.758 INFO Working at {"dir": "/usr/lib/systemd/system"}
Log Level:1
2022-12-09 11:17:33.758 INFO Options {"Log Level": "info", "UseReadv": true}
2022-12-09 11:17:33.758 INFO Listening {"protocol": "+vmess", "listen_addr": "0.0.0.0:4434", "defaultClient": "dual+direct", "dial_addr": ""}
2022-12-09 11:17:33.758 ERROR ListenSer failed {"addr": "0.0.0.0:4434", "error": "listen tcp 0.0.0.0:4434: bind: address already in use"}

在启动命令行之前已经用下面命令确认4434端口无论tcp或udp都没有使用

netstat -tunap

@e1732a364fed
Copy link
Owner

我试了。标准配置模式没有问题,只有命令行url模式出现了这个问题。

可能在哪里我重复调用了一遍 ListenSer

另外还发现,命令行url模式会自动配置一个unix回落?似乎也是个bug

@e1732a364fed
Copy link
Owner

e1732a364fed commented Dec 12, 2022

最新代码解决了url模式下重复listen的问题; unix回落现象也解决了

@e1732a364fed e1732a364fed added the bug Something isn't working label Dec 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants