diff options
Diffstat (limited to 'server/src/network/register.rs')
| -rw-r--r-- | server/src/network/register.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/src/network/register.rs b/server/src/network/register.rs index 8617af4d..47dac4a8 100644 --- a/server/src/network/register.rs +++ b/server/src/network/register.rs @@ -16,13 +16,13 @@ */ use crate::server::Server; -use anyhow::{bail, Result}; -use hurrycurry_protocol::{registry::Submission, VERSION}; +use anyhow::{Result, bail}; +use hurrycurry_protocol::{VERSION, registry::Submission}; use log::{debug, error, info, warn}; -use rand::random; -use reqwest::{header::USER_AGENT, Client, Url}; +use reqwest::{Client, Url, header::USER_AGENT}; use std::{ net::{IpAddr, Ipv4Addr, Ipv6Addr}, + random::random, str::FromStr, sync::Arc, time::Duration, @@ -56,7 +56,7 @@ impl Register { register_uri, players: 0, port, - secret: random(), + secret: random(..), state, ip4_client: if no4 { None |