fix allow_routing AtomicBool bug
This commit is contained in:
parent
74a549dea9
commit
f5e1cfff67
@ -6,6 +6,7 @@ mod utils;
|
|||||||
mod quic;
|
mod quic;
|
||||||
|
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
use std::sync::atomic::AtomicBool;
|
||||||
use std::{sync::atomic::AtomicU8, time::Duration};
|
use std::{sync::atomic::AtomicU8, time::Duration};
|
||||||
|
|
||||||
use std::net::{SocketAddr, ToSocketAddrs};
|
use std::net::{SocketAddr, ToSocketAddrs};
|
||||||
@ -154,7 +155,7 @@ async fn parse_config(uuid: String, args: &CommandLine) -> Result<NodeConfig> {
|
|||||||
|
|
||||||
let node_conf = NodeConfig {
|
let node_conf = NodeConfig {
|
||||||
name: args.name.to_owned(),
|
name: args.name.to_owned(),
|
||||||
allow_routing: args.allow_routing,
|
allow_routing: AtomicBool::new(args.allow_routing),
|
||||||
_drop_multicast: true,
|
_drop_multicast: true,
|
||||||
allow_p2p: args.allow_p2p,
|
allow_p2p: args.allow_p2p,
|
||||||
mtu: args.mtu,
|
mtu: args.mtu,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user