mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-20 21:43:41 +00:00
Fix plugin on Android
This commit is contained in:
@@ -110,7 +110,11 @@ start_ss_plugin(const char *plugin,
|
||||
if (plugin_opts != NULL)
|
||||
cork_env_add(env, "SS_PLUGIN_OPTIONS", plugin_opts);
|
||||
|
||||
#ifdef __ANDROID__
|
||||
exec = cork_exec_new_with_params("sh", "-c", plugin, NULL);
|
||||
#else
|
||||
exec = cork_exec_new_with_params(plugin, NULL);
|
||||
#endif
|
||||
|
||||
cork_exec_set_env(exec, env);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user