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:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user