fixed issue where if you don't give a port and just an IP the IP for the

server doesn't get set.
This commit is contained in:
2026-08-17 13:11:20 -05:00
parent ec46c24f2c
commit 9e79966434
+2
View File
@@ -163,6 +163,8 @@ async fn main() {
if let Some(ip) = args.ip { if let Some(ip) = args.ip {
if let Some(port) = args.port { if let Some(port) = args.port {
address = format!("{}:{}", ip.trim(), port.trim()); address = format!("{}:{}", ip.trim(), port.trim());
} else {
address = format!("{}:31337", ip.trim())
} }
} }
let mut server_pass: String = rand::rng() let mut server_pass: String = rand::rng()