Automatic port forwarding using UPnP and invitation link system #27

Merged
CoCo_Sol merged 6 commits from upnp into main 2024-02-07 16:55:09 +00:00
Showing only changes of commit 3f6c7d6037 - Show all commits

View file

@ -2,11 +2,8 @@
use std::collections::LinkedList; use std::collections::LinkedList;
use std::io::{self, Read, Write}; use std::io::{self, Read, Write};
use std::net::{IpAddr, Ipv4Addr, SocketAddr, SocketAddrV4, TcpListener, TcpStream, ToSocketAddrs}; use std::net::{IpAddr, Ipv4Addr, SocketAddrV4, TcpListener, TcpStream};
use base64::alphabet::Alphabet;
use base64::engine::general_purpose::NO_PAD;
use base64::engine::GeneralPurpose;
use base64::prelude::*; use base64::prelude::*;
use igd::{Gateway, PortMappingProtocol}; use igd::{Gateway, PortMappingProtocol};
use local_ip_address::local_ip; use local_ip_address::local_ip;