ihciah / shadow-tls

A proxy to expose real tls handshake to the firewall
https://www.ihcblog.com/a-better-tls-obfs-proxy/
MIT License
2.33k stars 265 forks source link

[BUG] 当listen字段使用已占用的端口时,软件退出,但没有任何提示信息 #71

Closed MFWT closed 1 year ago

MFWT commented 1 year ago

比如,执行下面的命令:

sudo ./shadowtls --v3 server --listen "<add>:<port_but_already_used>" --server "<add>:<port>" --password "<pass>" --tls "<some_host>"

此时终端输出:

<time>  INFO shadow_tls: Start 1-thread Server with:
Listen address: <add>:<port_but_already_used>
Target address: <add>:<port>
TLS server address: <some_host>
TCP_NODELAY: true
V3 Protocol: enabled(lossy)

user@xxx:/path$

并没有报错端口被占用,而是直接退出,这样似乎有点模糊了,建议加上相关报错提示 谢谢

ihciah commented 1 year ago

Thanks! It has been implemented in https://github.com/ihciah/shadow-tls/commit/7998a58f8521ea61f8f7dd609a882dfa7e10bc3c

It will be published on next release.