Compare commits
5 commits
9b4ec6d9af
...
18eb357092
Author | SHA1 | Date | |
---|---|---|---|
18eb357092 | |||
135cc71df0 | |||
a1693b1ff7 | |||
ccefec16a2 | |||
f5ea5cb3a1 |
2 changed files with 2 additions and 2 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -86,7 +86,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "revpfw3"
|
||||
version = "0.4.0"
|
||||
version = "0.4.1"
|
||||
dependencies = [
|
||||
"enum-ordinalize",
|
||||
"serial",
|
||||
|
|
|
@ -36,7 +36,7 @@ pub fn server(port: u16, key: &str, sleep_delay_ms: u64) {
|
|||
let mut buf8 = [0u8; 8];
|
||||
let mut buf16 = [0u8; 16];
|
||||
let mut buf = [0; 1024];
|
||||
let tcpl = TcpListener::bind(("0.0.0.0", port)).unwrap();
|
||||
let tcpl = TcpListener::bind(("::0", port)).unwrap();
|
||||
let mut tcp = loop {
|
||||
let Ok(mut tcp) = tcpl.accept() else { continue };
|
||||
tcp.0
|
||||
|
|
Loading…
Add table
Reference in a new issue