shadowsocks / v2ray-plugin

A SIP003 plugin based on v2ray
MIT License
2.64k stars 568 forks source link

bind: address already in use. But port havn't be used. #282

Closed cupen closed 2 years ago

cupen commented 2 years ago

It doesn't work fine to me. My envs:

Here is my shadowsocks config. /etc/shadowsocks/4.json

{
    "server": "0.0.0.0",
    "server_port": 10014,
    "mode": "tcp_only",
    "password": "this@is@new@shit",
    "method": "chacha20-ietf-poly1305",
    "workers": 16,
    "plugin": "v2ray-plugin",
    "plugin-opts": "server"
}

Here is the trace llogs. It seems that the 35801 is a random port, so it's not used.

$ ssserver  --config /etc/shadowsocks/4.json
2022-04-20T16:28:51.313478-04:00 INFO  shadowsocks server 1.14.3 build 2022-04-19T03:44:16.480197342+00:00
2022-04-20T16:28:51.317043571-04:00 INFO  shadowsocks tcp server listening on 127.0.0.1:35801, inbound address 0.0.0.0:10014
2022/04/20 16:28:51 V2Ray 4.23.2 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.14.3 linux/amd64)
2022/04/20 16:28:51 A unified platform for anti-censorship.
2022/04/20 16:28:51 failed to start server: v2ray.com/core/app/proxyman/inbound: failed to listen TCP on 35801 > v2ray.com/core/transport/internet: failed to listen on address: 127.0.0.1:35801 > listen tcp 127.0.0.1:35801: bind: address already in use
2022-04-20T16:28:51.454009179-04:00 ERROR plugin exited with status: exit status: 1
server aborted with server exited unexpectedly
liujunhui2 commented 2 years ago

plugin-opts => plugin_opts

cupen commented 2 years ago

OH! Yes, It's plugin_opts, sorry for my mistake. @liujunhui74 Thanks。

dataviruset commented 1 year ago

Weirdly enough I can't get mode=quic to work if I use plugin_opts instead of plugin-opts...