Use random ports when port number is 0 (#79)

* Use random ports when port number is 0

* Add support for --max-port CLI option

* Fix typo

* Fix another typo

* Update README
This commit is contained in:
Eric Zhang
2023-04-27 21:48:47 -04:00
committed by GitHub
parent 931f2aa20b
commit 0860c6e018
8 changed files with 99 additions and 39 deletions

View File

@@ -3,9 +3,7 @@
use std::sync::Arc;
use anyhow::{bail, Context, Result};
use tokio::io::AsyncWriteExt;
use tokio::{net::TcpStream, time::timeout};
use tokio::{io::AsyncWriteExt, net::TcpStream, time::timeout};
use tracing::{error, info, info_span, warn, Instrument};
use uuid::Uuid;