server and manager will still derive mode from the global scope

This commit is contained in:
zonyitoo
2021-09-07 16:27:33 +08:00
parent 0b01621e2f
commit 7d2def45e3
+6 -1
View File
@@ -1345,7 +1345,12 @@ impl Config {
return Err(err);
}
},
None => {}
None => {
// Server will derive mode from the global scope
if matches!(config_type, ConfigType::Server | ConfigType::Manager) {
nsvr.set_mode(global_mode);
}
}
}
if let Some(p) = svr.plugin {