Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
oscartbeaumont committed Apr 24, 2024
1 parent a2cb2b7 commit 9438bb6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/node/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use sd_p2p::Identity;
use sd_utils::error::FileIOError;

use std::{
net::SocketAddr,
path::{Path, PathBuf},
sync::Arc,
};
Expand Down Expand Up @@ -81,6 +82,9 @@ pub struct NodeConfigP2P {
pub ipv6: bool,
#[serde(default, skip_serializing_if = "skip_if_false")]
pub remote_access: bool,
/// A list of peer addresses to try and manually connect to, instead of relying on discovery.
#[serde(default)]
pub manual_peers: Vec<SocketAddr>,
}

impl Default for NodeConfigP2P {
Expand All @@ -91,6 +95,7 @@ impl Default for NodeConfigP2P {
ipv4: true,
ipv6: true,
remote_access: false,
manual_peers: vec![],
}
}
}
Expand Down

0 comments on commit 9438bb6

Please sign in to comment.