// VpnCloud - Peer-to-Peer VPN // Copyright (C) 2015-2019 Dennis Schwerdel // This software is licensed under GPL-3 or newer (see LICENSE.md) use std::net::{SocketAddrV4, UdpSocket, SocketAddr}; use std::io; use igd::*; use super::util::{SystemTimeSource, Time, TimeSource}; const LEASE_TIME: u32 = 300; const DESCRIPTION: &str = "VpnCloud"; pub struct PortForwarding { pub internal_addr: SocketAddrV4, pub external_addr: SocketAddrV4, pub gateway: Gateway, pub next_extension: Option