mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
support IPv6 for NetworkArgs.addr and DiscoveryArgs.addr (#7210)
This commit is contained in:
@ -32,12 +32,7 @@ use reth_stages::Pipeline;
|
||||
use reth_static_file::StaticFileProducer;
|
||||
use reth_tasks::TaskExecutor;
|
||||
use reth_transaction_pool::noop::NoopTransactionPool;
|
||||
use std::{
|
||||
net::{SocketAddr, SocketAddrV4},
|
||||
path::PathBuf,
|
||||
sync::Arc,
|
||||
time::Duration,
|
||||
};
|
||||
use std::{net::SocketAddr, path::PathBuf, sync::Arc, time::Duration};
|
||||
use tokio::sync::{mpsc, oneshot};
|
||||
use tracing::*;
|
||||
|
||||
@ -97,11 +92,11 @@ impl Command {
|
||||
.network
|
||||
.network_config(config, self.chain.clone(), secret_key, default_peers_path)
|
||||
.with_task_executor(Box::new(task_executor))
|
||||
.listener_addr(SocketAddr::V4(SocketAddrV4::new(self.network.addr, self.network.port)))
|
||||
.discovery_addr(SocketAddr::V4(SocketAddrV4::new(
|
||||
.listener_addr(SocketAddr::new(self.network.addr, self.network.port))
|
||||
.discovery_addr(SocketAddr::new(
|
||||
self.network.discovery.addr,
|
||||
self.network.discovery.port,
|
||||
)))
|
||||
))
|
||||
.build(ProviderFactory::new(
|
||||
db,
|
||||
self.chain.clone(),
|
||||
|
||||
Reference in New Issue
Block a user