mirror of
https://github.com/YGGverse/agate.git
synced 2026-04-08 12:35:28 +00:00
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:
parent
ba3c01d38f
commit
b0d0f64be0
5 changed files with 141 additions and 52 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue