Update plugin.c

Launch plugin with NULL params gives plugin to run in both plugin mode & cli mode.

See https://github.com/cbeuw/GoQuiet/issues/15
This commit is contained in:
Kim
2018-03-20 13:54:49 +08:00
committed by GitHub
parent a977a6c273
commit d61b8f0c33
+1 -1
View File
@@ -110,7 +110,7 @@ start_ss_plugin(const char *plugin,
if (plugin_opts != NULL)
cork_env_add(env, "SS_PLUGIN_OPTIONS", plugin_opts);
exec = cork_exec_new(plugin);
exec = cork_exec_new_with_params(plugin, NULL);
cork_exec_set_env(exec, env);