|
|
@ -466,9 +466,6 @@ fn bind_listeners(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn privdrop(config: &Config) -> Result<(), Error> {
|
|
|
|
fn privdrop(config: &Config) -> Result<(), Error> {
|
|
|
|
if config.daemonize && config.metrics.is_some() {
|
|
|
|
|
|
|
|
bail!("Metrics are incompatible with daemonization - set 'daemonize = false' in the configuration file if you need metrics.");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
let mut pd = PrivDrop::default();
|
|
|
|
let mut pd = PrivDrop::default();
|
|
|
|
if let Some(user) = &config.user {
|
|
|
|
if let Some(user) = &config.user {
|
|
|
|
pd = pd.user(user);
|
|
|
|
pd = pd.user(user);
|
|
|
|