Plan: Add user-specified Telnet port

This commit is contained in:
minhtrannhat 2023-07-10 10:58:59 -04:00
parent ab00e9b55e
commit d7bbea3cfe
Signed by: minhtrannhat
GPG Key ID: E13CFA85C53F8062

View File

@ -16,6 +16,7 @@ async fn main() -> Result<(), Report> {
let ip_address = local_ip().unwrap(); let ip_address = local_ip().unwrap();
// Set up a TCP listener to listen for incoming tcp requests at the ip address that is passed from the command line // Set up a TCP listener to listen for incoming tcp requests at the ip address that is passed from the command line
// TODO: Custom ports
let listener = TcpListener::bind(format!("{ip_address}:8080")).await.unwrap(); let listener = TcpListener::bind(format!("{ip_address}:8080")).await.unwrap();
debug!("{}", format!("Bounded to {ip_address} port 8080")); debug!("{}", format!("Bounded to {ip_address} port 8080"));