-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move public IP address detection out of bash #499
Conversation
@garious I think this is a little nicer for the snap setup at least. My Rust is still pretty terrible so donno what you think about bringing in that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)
src/nat.rs
Outdated
@@ -16,6 +19,31 @@ pub struct UdpSocketPair { | |||
pub sender: UdpSocket, // Locally bound socket to send via public address | |||
} | |||
|
|||
/// Tries to determine the public IP address of this machine, returns 0.0.0.0 on | |||
/// failure | |||
pub fn get_public_ip_addr() -> IpAddr { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should return a Result. There's enough things to go wrong.
Good thinking on defaulting local. |
84a1910
to
08edf46
Compare
Gross this brings in an openssl dependency that's breaking |
An openssl dep seems pretty unavoidable. A broken one is disappointing. |
nat put a dependency on hyper. Might as well add https://docs.rs/reqwest/0.8.6/reqwest/? |
💔 Unable to automerge due to merge conflict |
🚍 |
Backport clone derivation (416) (solana-labs#418) backports solana-labs#430: update jito-programs (solana-labs#432) Backport solana-labs#446 to v1.17 (solana-labs#448) [JIT-1661] Faster Autosnapshot (solana-labs#445) v1.17: Backport solana-labs#449 (solana-labs#451) backports solana-labs#419: add upsert to accountoverrides (solana-labs#421) backport 428 runtime-plugin (solana-labs#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (solana-labs#499) Backport solana-labs#500 to v1.17 (solana-labs#507) Backport solana-labs#520: add priority fees to mev claim (solana-labs#525)
Backport clone derivation (416) (solana-labs#418) backports solana-labs#430: update jito-programs (solana-labs#432) Backport solana-labs#446 to v1.17 (solana-labs#448) [JIT-1661] Faster Autosnapshot (solana-labs#445) v1.17: Backport solana-labs#449 (solana-labs#451) backports solana-labs#419: add upsert to accountoverrides (solana-labs#421) backport 428 runtime-plugin (solana-labs#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (solana-labs#499) Backport solana-labs#500 to v1.17 (solana-labs#507) Backport solana-labs#520: add priority fees to mev claim (solana-labs#525) Faster MEV tip claiming (v1.17) (solana-labs#568) Backport Release Fixes (solana-labs#586)
Backport clone derivation (416) (solana-labs#418) backports solana-labs#430: update jito-programs (solana-labs#432) Backport solana-labs#446 to v1.17 (solana-labs#448) [JIT-1661] Faster Autosnapshot (solana-labs#445) v1.17: Backport solana-labs#449 (solana-labs#451) backports solana-labs#419: add upsert to accountoverrides (solana-labs#421) backport 428 runtime-plugin (solana-labs#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (solana-labs#499) Backport solana-labs#500 to v1.17 (solana-labs#507) Backport solana-labs#520: add priority fees to mev claim (solana-labs#525) Faster MEV tip claiming (v1.17) (solana-labs#568) Backport Release Fixes (solana-labs#586)
#499) ci: fix some issues for the release pipeline (#493) * add TRIGGERED_BUILDKITE_TAG to the pipeline * publish a pre-release for the release id (cherry picked from commit b1e1799) Co-authored-by: Yihau Chen <[email protected]>
…na-labs#493) (solana-labs#499) ci: fix some issues for the release pipeline (solana-labs#493) * add TRIGGERED_BUILDKITE_TAG to the pipeline * publish a pre-release for the release id (cherry picked from commit b1e1799) Co-authored-by: Yihau Chen <[email protected]>
Backport clone derivation (416) (solana-labs#418) backports solana-labs#430: update jito-programs (solana-labs#432) Backport solana-labs#446 to v1.17 (solana-labs#448) [JIT-1661] Faster Autosnapshot (solana-labs#445) v1.17: Backport solana-labs#449 (solana-labs#451) backports solana-labs#419: add upsert to accountoverrides (solana-labs#421) backport 428 runtime-plugin (solana-labs#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (solana-labs#499) Backport solana-labs#500 to v1.17 (solana-labs#507) Backport solana-labs#520: add priority fees to mev claim (solana-labs#525) Faster MEV tip claiming (v1.17) (solana-labs#568) Backport Release Fixes (solana-labs#586)
Backport clone derivation (416) (solana-labs#418) backports solana-labs#430: update jito-programs (solana-labs#432) Backport solana-labs#446 to v1.17 (solana-labs#448) [JIT-1661] Faster Autosnapshot (solana-labs#445) v1.17: Backport solana-labs#449 (solana-labs#451) backports solana-labs#419: add upsert to accountoverrides (solana-labs#421) backport 428 runtime-plugin (solana-labs#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (solana-labs#499) Backport solana-labs#500 to v1.17 (solana-labs#507) Backport solana-labs#520: add priority fees to mev claim (solana-labs#525) Faster MEV tip claiming (v1.17) (solana-labs#568) Backport Release Fixes (solana-labs#586) Update release URLs for jito-solana (solana-labs#589) Backports solana-labs#595: correctly initialize account overrides (solana-labs#599) Fix: Ensure set contact info to UDP port instead of QUIC (solana-labs#601) Buffer bundles that exceed processing time and make the allowed processing time longer (solana-labs#609)
Backport clone derivation (416) (solana-labs#418) backports solana-labs#430: update jito-programs (solana-labs#432) Backport solana-labs#446 to v1.17 (solana-labs#448) [JIT-1661] Faster Autosnapshot (solana-labs#445) v1.17: Backport solana-labs#449 (solana-labs#451) backports solana-labs#419: add upsert to accountoverrides (solana-labs#421) backport 428 runtime-plugin (solana-labs#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (solana-labs#499) Backport solana-labs#500 to v1.17 (solana-labs#507) Backport solana-labs#520: add priority fees to mev claim (solana-labs#525) Faster MEV tip claiming (v1.17) (solana-labs#568) Backport Release Fixes (solana-labs#586) Update release URLs for jito-solana (solana-labs#589) Backports solana-labs#595: correctly initialize account overrides (solana-labs#599) Fix: Ensure set contact info to UDP port instead of QUIC (solana-labs#601) Buffer bundles that exceed processing time and make the allowed processing time longer (solana-labs#609)
Includes further refinement/churn of the
setup.sh/
solana-fullnode-config` CLI arguments. The options are:Use local address (may be a private IP):
Use the detected public address (forced for the snap-based fullnode daemon):