diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-05-23 15:38:08 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-05-23 15:38:08 +0200 |
commit | 3e2ea02d62e0d8fd77e46e6dc5e0318584fb16dc (patch) | |
tree | 9b000795b0d624f8e11e5c44660bfd55142f00a5 /src/messages.rs | |
parent | 941942aedae347a5aeb2a4c63c3443603dd26bbb (diff) | |
download | diplonat-3e2ea02d62e0d8fd77e46e6dc5e0318584fb16dc.tar.gz diplonat-3e2ea02d62e0d8fd77e46e6dc5e0318584fb16dc.zip |
Working IGD
Diffstat (limited to 'src/messages.rs')
-rw-r--r-- | src/messages.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/messages.rs b/src/messages.rs index 46cc4c5..31ed48f 100644 --- a/src/messages.rs +++ b/src/messages.rs @@ -3,3 +3,12 @@ pub struct PublicExposedPorts { pub tcp_ports: Vec<u16>, pub udp_ports: Vec<u16> } + +impl PublicExposedPorts { + pub fn new() -> Self { + return Self { + tcp_ports: Vec::new(), + udp_ports: Vec::new() + } + } +} |