SagerNet / v2ray-core

A platform for building proxies to bypass network restrictions (for SagerNet :)
Other
230 stars 29 forks source link

shadowsocks with plugin no support windows #4

Closed plusls closed 2 years ago

plusls commented 2 years ago

log:

$ ./core/v2ray.exe run -c ./config/plugin_files/builtin_sager_support/config1.json
V2Ray 5.0.8 (V2Fly, a community-driven edition of V2Ray.) SagerNet (go1.18rc1 windows/amd64)
A unified platform for anti-censorship.
2022/03/03 00:34:51 [Info] proxy/shadowsocks/plugin/external: start process obfs-local.exe
2022/03/03 00:34:51 [Info] proxy/shadowsocks/plugin/external: obfs-local.exe-stderr: 2022-03-03 00:34:51 [simple-obfs] INFO: obfuscating enabled

2022/03/03 00:34:51 [Info] proxy/shadowsocks/plugin/external: obfs-local.exe-stderr: 2022-03-03 00:34:51 [simple-obfs] INFO: obfuscating hostname: 945de113452.wns.windows.com

2022/03/03 00:34:51 [Info] proxy/shadowsocks/plugin/external: obfs-local.exe-stderr: 2022-03-03 00:34:51 [simple-obfs] INFO: listening at 127.0.0.1:49752

Failed to start: main/commands: failed to create server > proxy/shadowsocks: failed to start plugin > proxy/shadowsocks/plugin/external: shadowsocks plugin obfs-local.exe exits too fast > not supported by windows

Because use signal 0 to check process in plugin.go

https://github.com/SagerNet/v2ray-core/blob/f139e16d7d34379c0f987c7f6f418309a1539935/proxy/shadowsocks/plugin/external/plugin.go#L91

nekohasekai commented 2 years ago

https://github.com/SagerNet/v2ray-core/commit/0ab0fecb5126185bc99a89b94fbf94a22e8c9699

plusls commented 2 years ago

fixed.