Add --bind-address and --rpc-bind-address validator arguments (#8628) (#8655)

automerge
This commit is contained in:
Grimes
2020-03-04 22:39:38 -08:00
committed by GitHub
parent d1c80143ea
commit 5caf9110e0
12 changed files with 186 additions and 93 deletions

View File

@@ -13,7 +13,12 @@ use solana_core::{
contact_info::ContactInfo,
};
use solana_sdk::{commitment_config::CommitmentConfig, signature::Signer};
use std::{net::SocketAddr, path::PathBuf, process::exit, sync::Arc};
use std::{
net::{IpAddr, Ipv4Addr, SocketAddr},
path::PathBuf,
process::exit,
sync::Arc,
};
fn main() {
solana_logger::setup();
@@ -116,6 +121,7 @@ fn main() {
&identity_keypair.pubkey(),
&gossip_addr,
VALIDATOR_PORT_RANGE,
IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)),
);
println!(