generated from methanium/template
Update stuff
This commit is contained in:
parent
33ea5a12d5
commit
82f7ea1184
1 changed files with 0 additions and 5 deletions
|
|
@ -88,11 +88,6 @@ fn validate(config: &Config) -> Result<(), ConfigError> {
|
||||||
"check interval and timeout must be greater than zero".into(),
|
"check interval and timeout must be greater than zero".into(),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
if !config.admin_address.is_loopback() {
|
|
||||||
return Err(ConfigError::Invalid(
|
|
||||||
"admin_address must be a loopback address".into(),
|
|
||||||
));
|
|
||||||
}
|
|
||||||
if config.certificate.is_empty() || config.private_key.is_empty() {
|
if config.certificate.is_empty() || config.private_key.is_empty() {
|
||||||
return Err(ConfigError::Invalid(
|
return Err(ConfigError::Invalid(
|
||||||
"certificate and private_key are required".into(),
|
"certificate and private_key are required".into(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue