Skip to content

Commit

Permalink
Add release binary and ensure public IP isn't set to loopback (solana…
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalu authored Jan 29, 2024
1 parent a27849f commit e2d186f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Next, check out the master branch of the jito-relayer repo and
ensure you're on the latest commit.
In the master branch, run the following command and follow the instructions:
```shell
$ cargo workspaces version --all
$ ./release
```
This will bump all the versions of the packages in your repo,
push to master and tag a new commit.
Expand Down
2 changes: 2 additions & 0 deletions release
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env sh
cargo workspaces version --all --exact --no-individual-tags
4 changes: 4 additions & 0 deletions transaction-relayer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@ fn main() {
please find your public ip address and pass it in on the command line",
public_ip
);
assert!(
!public_ip.is_loopback(),
"Your public IP can't be the loopback interface"
);

// Supporting IPV6 addresses is a DOS vector since they are cheap and there's a much larger amount of them.
// The DOS is specifically with regards to the challenges queue filling up and starving other legitimate
Expand Down

0 comments on commit e2d186f

Please sign in to comment.