Clean up --gossip-port argument (#7067)
--gossip-port now specifies exactly that, the gossip port to use. The new --gossip-host argument can be used to specify the DNS name/IP address for gossip if --entrypoint is not supplied (when --entrypoint is supplied, the gossip address is automatically set to the node's ip address as observed by the entrypoint)
This commit is contained in:
@ -176,6 +176,10 @@ pub fn parse_host(host: &str) -> Result<IpAddr, String> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_host(string: String) -> Result<(), String> {
|
||||
parse_host(&string).map(|_| ())
|
||||
}
|
||||
|
||||
pub fn parse_host_port(host_port: &str) -> Result<SocketAddr, String> {
|
||||
let addrs: Vec<_> = host_port
|
||||
.to_socket_addrs()
|
||||
@ -189,8 +193,7 @@ pub fn parse_host_port(host_port: &str) -> Result<SocketAddr, String> {
|
||||
}
|
||||
|
||||
pub fn is_host_port(string: String) -> Result<(), String> {
|
||||
parse_host_port(&string)?;
|
||||
Ok(())
|
||||
parse_host_port(&string).map(|_| ())
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
|
Reference in New Issue
Block a user