Skip to content

Commit

Permalink
[testing] changing default local test-validator address from localhos…
Browse files Browse the repository at this point in the history
…t to 127.0.0.1
  • Loading branch information
ochaloup committed Dec 11, 2023
1 parent 8bf7f25 commit 0881711
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3514,7 +3514,7 @@ fn test_validator_rpc_url(test_validator: &Option<TestValidator>) -> String {
validator: Some(validator),
..
}) => format!("http://{}:{}", validator.bind_address, validator.rpc_port),
_ => "http://localhost:8899".to_string(),
_ => "http://127.0.0.1:8899".to_string(),
}
}

Expand Down
2 changes: 1 addition & 1 deletion ts/packages/anchor/src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class AnchorProvider implements Provider {
}
opts = opts ?? AnchorProvider.defaultOptions();
const connection = new Connection(
url ?? "http://localhost:8899",
url ?? "http://127.0.0.1:8899",
opts.preflightCommitment
);
const NodeWallet = require("./nodewallet.js").default;
Expand Down

0 comments on commit 0881711

Please sign in to comment.