shadowsocks / go-shadowsocks2

Modern Shadowsocks in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

failed to start with v2ray-plugin && without "-verbose" flag

NotRealMe opened this issue · comments

commented

start program with v2ray-plugin and without -verbose flag :

go-shadowsocks2 -s "ss://chacha20-ietf-poly1305:JustPassWD@:xxxxx" -plugin v2ray-plugin -plugin-opts "server;fast-open;host=example.com;path=/haha"

this will cause program exit with code 2(P.S. if start with a -verbose flag, it just works fine)

After some investigation, I find out program exit at

os.Exit(2)

and if I delete the if warp(also with an empty return) in

if config.Verbose {

or change this line :

return

to

return len(p), nil

shadowsocks can works fine with v2ray-plugin and without -verbose flag enable.

commented

Thank you for reporting. Fixed in a57bc39 .