diff options
author | Lia Lenckowski <lialenck@protonmail.com> | 2023-10-01 23:09:23 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-10-04 14:26:52 +0200 |
commit | 2d7fefd820530080002a063acf9b0a2501c6725b (patch) | |
tree | fb8b993a6bf21183bf1ea9bde47f54a548a826c5 | |
parent | 0114be25b4ba27d82b403249856ebc862bf2b2d8 (diff) | |
download | gnix-2d7fefd820530080002a063acf9b0a2501c6725b.tar gnix-2d7fefd820530080002a063acf9b0a2501c6725b.tar.bz2 gnix-2d7fefd820530080002a063acf9b0a2501c6725b.tar.zst |
support scalar bind field in https config (the example from the readme was broken all along. oops)
Signed-off-by: metamuffin <metamuffin@disroot.org>
-rw-r--r-- | src/config.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index c02af52..c686930 100644 --- a/src/config.rs +++ b/src/config.rs @@ -30,6 +30,7 @@ pub struct HttpConfig { #[derive(Debug, Serialize, Deserialize)] pub struct HttpsConfig { + #[serde(deserialize_with = "string_or_seq")] pub bind: Vec<SocketAddr>, pub tls_cert: PathBuf, pub tls_key: PathBuf, |