move back SocketConfig to aquatic_http

This commit is contained in:
Joakim Frostegård 2020-07-02 17:06:34 +02:00
parent 82378e71f6
commit b86787ef20
5 changed files with 18 additions and 31 deletions

View file

@ -31,14 +31,6 @@ pub struct HandlerConfig {
pub channel_recv_timeout_microseconds: u64,
}
#[derive(Clone, Debug, Serialize, Deserialize)]
#[serde(default)]
pub struct SocketConfig {
/// Bind to this address
pub address: SocketAddr,
pub ipv6_only: bool,
}
#[derive(Clone, Debug, Serialize, Deserialize)]
#[serde(default)]
@ -83,16 +75,6 @@ impl Default for HandlerConfig {
}
impl Default for SocketConfig {
fn default() -> Self {
Self {
address: SocketAddr::from(([0, 0, 0, 0], 3000)),
ipv6_only: false,
}
}
}
impl Default for TlsConfig {
fn default() -> Self {
Self {