actually bind to multiple addresses

resolves #63

This now causes an error message with the default bindings because on Linux
binding to both IPv6's [::] and IPv4's 0.0.0.0 results in a "port in use" error
This commit is contained in:
Johann150 2021-07-18 11:30:17 +02:00
parent ba3c01d38f
commit b0d0f64be0
No known key found for this signature in database
GPG key ID: 9EE6577A2A06F8F1
5 changed files with 141 additions and 52 deletions

View file

@ -40,7 +40,7 @@ impl Server {
let mut buffer = String::new();
while matches!(reader.read_line(&mut buffer), Ok(i) if i>0) {
print!("log: {}", buffer);
if buffer.contains("Listening") {
if buffer.contains("Started") {
break;
}