Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Really skip private rpc port reachable checks (#12239) (#12241)
Browse files Browse the repository at this point in the history
(cherry picked from commit b85e849)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
  • Loading branch information
mergify[bot] and ryoqun authored Sep 15, 2020
1 parent 1354a0c commit f107b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down

0 comments on commit f107b9b

Please sign in to comment.