mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 05:16:28 +03:00
refactor: split "transport" module out of "login_param"
`login_param` module is now for user-visible entered login parameters, while the `transport` module contains structures for internal representation of connection candidate list created during transport configuration.
This commit is contained in:
@@ -8,7 +8,6 @@ use tokio::io::{AsyncBufRead, AsyncWrite, BufStream};
|
||||
|
||||
use crate::context::Context;
|
||||
use crate::log::{info, warn};
|
||||
use crate::login_param::{ConnectionCandidate, ConnectionSecurity};
|
||||
use crate::net::dns::{lookup_host_with_cache, update_connect_timestamp};
|
||||
use crate::net::proxy::ProxyConfig;
|
||||
use crate::net::session::SessionBufStream;
|
||||
@@ -18,6 +17,8 @@ use crate::net::{
|
||||
};
|
||||
use crate::oauth2::get_oauth2_access_token;
|
||||
use crate::tools::time;
|
||||
use crate::transport::ConnectionCandidate;
|
||||
use crate::transport::ConnectionSecurity;
|
||||
|
||||
/// Converts port number to ALPN.
|
||||
fn alpn(port: u16) -> &'static str {
|
||||
|
||||
Reference in New Issue
Block a user