diff options
author | adrien <adrien@luxeylab.net> | 2021-09-10 18:41:39 +0200 |
---|---|---|
committer | adrien <adrien@luxeylab.net> | 2021-09-10 18:41:39 +0200 |
commit | 4d76c3d78ade04038593aeef867294c9eee2a4b8 (patch) | |
tree | 8fac4937beafb831b7354bb2afa37bb5bea99e00 /src/messages.rs | |
parent | 195aec2cfe738f4025ea540d2591f876e1d209b9 (diff) | |
download | diplonat-4d76c3d78ade04038593aeef867294c9eee2a4b8.tar.gz diplonat-4d76c3d78ade04038593aeef867294c9eee2a4b8.zip |
wrote the skeleton of ACME. Involved solving the cosmetic warnings about CamelCase for enums (without changing the API).
Diffstat (limited to 'src/messages.rs')
-rw-r--r-- | src/messages.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/messages.rs b/src/messages.rs index 09a7c14..86ba1b2 100644 --- a/src/messages.rs +++ b/src/messages.rs @@ -3,14 +3,16 @@ use std::collections::HashSet; #[derive(Debug, Clone, PartialEq, Eq)] pub struct PublicExposedPorts { pub tcp_ports: HashSet<u16>, - pub udp_ports: HashSet<u16> + pub udp_ports: HashSet<u16>, + pub acme: HashSet<String> } impl PublicExposedPorts { pub fn new() -> Self { return Self { tcp_ports: HashSet::new(), - udp_ports: HashSet::new() + udp_ports: HashSet::new(), + acme: HashSet::new() } } } |