Cliipy
This commit is contained in:
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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user