Fallback to plain-text when STARTTLS is optional

This commit is contained in:
mdecimus
2023-08-25 20:05:41 +02:00
parent 5da7e40147
commit 426c073b25
9 changed files with 36 additions and 4 deletions

View File

@@ -91,6 +91,7 @@ async fn generate_dsn() {
entity: "mx.domain.org".to_string(),
details: "Connection timeout".to_string(),
})),
disable_tls: false,
changed: false,
}],
flags: 0,

View File

@@ -152,6 +152,7 @@ fn domain(domain: &str, retry: u64, notify: u64, expires: u64) -> Domain {
notify: Schedule::later(Duration::from_secs(notify)),
expires: Instant::now() + Duration::from_secs(expires),
status: Status::Scheduled,
disable_tls: false,
changed: false,
}
}

View File

@@ -79,6 +79,7 @@ async fn queue_serialize() {
notify: Schedule::now(),
expires: Instant::now() + Duration::from_secs(10),
status: Status::Scheduled,
disable_tls: false,
changed: false,
},
Domain {
@@ -87,6 +88,7 @@ async fn queue_serialize() {
notify: Schedule::now(),
expires: Instant::now() + Duration::from_secs(10),
status: Status::Scheduled,
disable_tls: false,
changed: false,
},
],