This commit is contained in:
QuantumEntangledAndy committed 2023-04-05 15:41:31 +07:00
1 parent 17f3695ca7
commit 16022c8b28
2 files changed
+2 -2

No files matched your search

@@ -938,7 +938,7 @@ fn generate_cid() -> i32 {
}
async fn connect() -> Result<UdpSocket> {
let mut ports: Vec<u16> = (53500..54000).into_iter().collect();
let mut ports: Vec<u16> = (53500..54000).collect();
{
let mut rng = thread_rng();
ports.shuffle(&mut rng);
@@ -511,7 +511,7 @@ impl futures::AsyncWrite for UdpPayloadSource {
/// Helper to create a TcpStream with a connect timeout
async fn connect() -> Result<UdpSocket> {
let mut ports: Vec<u16> = (53500..54000).into_iter().collect();
let mut ports: Vec<u16> = (53500..54000).collect();
let mut rng = thread_rng();
ports.shuffle(&mut rng);