diff --git a/src/service/local.rs b/src/service/local.rs index 67e83c17..e2ea19b3 100644 --- a/src/service/local.rs +++ b/src/service/local.rs @@ -939,7 +939,7 @@ pub fn create(matches: &ArgMatches) -> ShadowsocksResult<(Runtime, impl Future("ONLINE_CONFIG_ALLOWED_PLUGIN") { - allowed_plugins = Some(plugins.collect()); + allowed_plugins = Some(plugins.cloned().collect()); } config.online_config = Some(OnlineConfig {