mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-02 14:03:12 +00:00
feat: add dns discovery parameters
This commit is contained in:
parent
5aaafc7c20
commit
c9552049e5
@ -68,6 +68,13 @@ pub struct WakuNodeConfig {
|
||||
#[default(Some(9000))]
|
||||
#[serde(rename = "discV5UDPPort")]
|
||||
pub discv5_udp_port: Option<u16>,
|
||||
/// Array of DNS discovery URLs
|
||||
#[serde(rename = "dnsDiscoveryURLs", default)]
|
||||
pub dns_discovery_urls: Vec<String>,
|
||||
/// Use custom nameserver. Default `` (uses the OS nameserver)
|
||||
#[default(Some("".to_string()))]
|
||||
#[serde(rename = "dnsDiscoveryNameServer")]
|
||||
pub dns_discovery_nameserver: Option<String>,
|
||||
/// Gossipsub custom configuration.
|
||||
pub gossipsub_params: Option<GossipSubParams>,
|
||||
/// The domain name resolving to the node's public IPv4 address.
|
||||
|
||||
@ -29,7 +29,6 @@ pub use config::{GossipSubParams, WakuLogLevel, WakuNodeConfig, WebsocketParams}
|
||||
pub use discovery::{waku_discv5_update_bootnodes, waku_dns_discovery, DnsInfo};
|
||||
pub use peers::{Protocol, WakuPeerData, WakuPeers};
|
||||
pub use relay::{waku_create_content_topic, waku_default_pubsub_topic};
|
||||
pub use store::{waku_local_store_query, waku_store_query};
|
||||
|
||||
/// Shared flag to check if a waku node is already running in the current process
|
||||
static WAKU_NODE_INITIALIZED: Mutex<bool> = Mutex::new(false);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user