replace 127.0.0.1 with [::]

This commit is contained in:
aniketfuryrocks 2023-01-17 11:07:26 +05:30
parent e9d7e7d851
commit 23681045cd
2 changed files with 5 additions and 5 deletions

View File

@ -11,9 +11,9 @@ pub struct Args {
pub rpc_addr: String,
#[arg(short, long, default_value_t = String::from(DEFAULT_WS_ADDR))]
pub ws_addr: String,
#[arg(short = 'l', long, default_value_t = String::from("127.0.0.1:8890"))]
#[arg(short = 'l', long, default_value_t = String::from("[::]:8890"))]
pub lite_rpc_http_addr: String,
#[arg(short = 's', long, default_value_t = String::from("127.0.0.1:8891"))]
#[arg(short = 's', long, default_value_t = String::from("[::]:8891"))]
pub lite_rpc_ws_addr: String,
/// batch size of each batch forward
#[arg(short = 'b', long, default_value_t = DEFAULT_TX_BATCH_SIZE)]

View File

@ -10,11 +10,11 @@ pub mod rpc;
pub mod workers;
#[from_env]
pub const DEFAULT_RPC_ADDR: &str = "http://127.0.0.1:8899";
pub const DEFAULT_RPC_ADDR: &str = "http://[::]:8899";
#[from_env]
pub const DEFAULT_LITE_RPC_ADDR: &str = "http://127.0.0.1:8890";
pub const DEFAULT_LITE_RPC_ADDR: &str = "http://[::]:8890";
#[from_env]
pub const DEFAULT_WS_ADDR: &str = "ws://127.0.0.1:8900";
pub const DEFAULT_WS_ADDR: &str = "ws://[::]:8900";
#[from_env]
pub const DEFAULT_TX_MAX_RETRIES: u16 = 1;
#[from_env]