Browse Source
Obfsproxy standalone mode (#1156)
Obfsproxy standalone mode (#1156)
* ss-libev: Introduce mode parameter for start_plugin Since obfsproxy handles client and server in different ways, no matter standalone or manged mode, so introduce the mode for start_plugin() to support obfsproxy. With more comments added to plugin.h for later developers. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * ss-libev: Move SS protocol plugin initialization code to start_ss_plugin Move SS protocol plugin initialization to start_ss_plugin() function, as the support for obfsproxy will not use that environment. Also, remove the use of get_current_dir_name() which is a glibc extension, such macro hack will just make code less readable. Not to mention it already screw up code folding of vim. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * ss-libev: Introduce obfsproxy standalone mode support as plugin Now shadowsocks-libev supports to use obfsproxy as plugin. Currently we only support to use standalone(proxy) mode of obfsproxy, as managed mode needs to use SOCKS5 as upstream forward, while ss-libev doesn't support it yet. And the output from plugin is just trashed for now. Support to pipe them into stdout/stderr will be added later. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * ss-libev: doc: Fix wrong cmdline parameter for plugin options Command line option for plugin options is "--plugin-opts", not the json option "--plugin_opts" Fix it. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>pull/1165/head
committed by
Max Lv
11 changed files with 195 additions and 50 deletions
Split View
Diff Options
-
4doc/ss-local.asciidoc
-
4doc/ss-manager.asciidoc
-
4doc/ss-redir.asciidoc
-
4doc/ss-server.asciidoc
-
4doc/ss-tunnel.asciidoc
-
2src/local.c
-
178src/plugin.c
-
39src/plugin.h
-
2src/redir.c
-
2src/server.c
-
2src/tunnel.c
Write
Preview
Loading…
Cancel
Save