(cherry picked from commit b85e8497b5
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
This commit is contained in:
@ -1310,7 +1310,7 @@ pub fn main() {
|
||||
("RPC pubsub", rpc_pubsub_addr),
|
||||
("RPC banks", rpc_banks_addr),
|
||||
] {
|
||||
if ContactInfo::is_valid_address(&addr) {
|
||||
if !private_rpc && ContactInfo::is_valid_address(&addr) {
|
||||
tcp_listeners.push((
|
||||
addr.port(),
|
||||
TcpListener::bind(addr).unwrap_or_else(|err| {
|
||||
|
Reference in New Issue
Block a user