Update SIP003 interfaces

This commit is contained in:
Max Lv
2017-01-14 10:40:14 +08:00
parent 824b9dc3b0
commit 92f0baa789
16 changed files with 87 additions and 13 deletions
+4
View File
@@ -82,6 +82,7 @@ struct cork_stream_consumer plugin_log = {
int
start_plugin(const char *plugin,
const char *plugin_opts,
const char *remote_host,
const char *remote_port,
const char *local_host,
@@ -127,6 +128,9 @@ start_plugin(const char *plugin,
cork_env_add(env, "SS_LOCAL_HOST", local_host);
cork_env_add(env, "SS_LOCAL_PORT", local_port);
if (plugin_opts != NULL)
cork_env_add(env, "SS_PLUGIN_OPTIONS", plugin_opts);
exec = cork_exec_new_with_params("sh", "-c", cmd, NULL);
cork_exec_set_env(exec, env);