Compare commits
2 commits
7c8c04573c
...
f64882b091
| Author | SHA1 | Date | |
|---|---|---|---|
| f64882b091 | |||
| 172a072c36 |
1 changed files with 5 additions and 1 deletions
|
|
@ -52,6 +52,10 @@ env!("CARGO_PKG_VERSION"));
|
||||||
|
|
||||||
println!("Version: {} ({})", status.version.name, status.version.protocol);
|
println!("Version: {} ({})", status.version.name, status.version.protocol);
|
||||||
println!("Players: {}/{}", status.players.online, status.players.max);
|
println!("Players: {}/{}", status.players.online, status.players.max);
|
||||||
|
println!(
|
||||||
|
"Enforces Secure Chat: {}",
|
||||||
|
if status.enforces_secure_chat() { "true" } else { "false" },
|
||||||
|
);
|
||||||
println!("MOTD:");
|
println!("MOTD:");
|
||||||
println!("{}", status.parse_description());
|
println!("{}", status.parse_description());
|
||||||
|
|
||||||
|
|
@ -75,7 +79,7 @@ env!("CARGO_PKG_VERSION"));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
HttpServer::new(address, 64, trusted_proxies).start(|request, mut response| {
|
HttpServer::new(address, 16, trusted_proxies).start(|request, mut response| {
|
||||||
response.status(StatusCode::OK);
|
response.status(StatusCode::OK);
|
||||||
response.set_header("Content-Type", "text/plain".to_string());
|
response.set_header("Content-Type", "text/plain".to_string());
|
||||||
response.set_header("x-powered-by", "GIRL FUEL".to_string());
|
response.set_header("x-powered-by", "GIRL FUEL".to_string());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue