Skip to content

Commit

Permalink
Simplify internal and ipv6 assignment
Browse files Browse the repository at this point in the history
This patch modifies the internal ip assignment and ipv6 address
assignment to match in design and test coverage with the external ip
assignment code.

This simplification is mostly achived by removing the requirement that
clients get the same ip each time they connect even between reboots.
Reviewing the code I decided it was easier to fix that problem on the
rita_client side than to deal with the solution here.
  • Loading branch information
jkilpatr committed Nov 19, 2024
1 parent 332b97d commit 4a77b84
Show file tree
Hide file tree
Showing 6 changed files with 238 additions and 320 deletions.
1 change: 1 addition & 0 deletions integration_tests/src/setup_utils/rita.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ pub fn spawn_rita_exit(
HashSet::new(),
settings::get_rita_exit().exit_network.ipv6_routing,
settings::get_rita_exit().exit_network.ipv4_routing,
settings::get_rita_exit().exit_network.internal_ipv4,
)));

let workers = 4;
Expand Down
1 change: 1 addition & 0 deletions rita_bin/src/exit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ async fn main() {
clients,
settings.exit_network.ipv6_routing,
settings.exit_network.ipv4_routing,
settings.exit_network.internal_ipv4,
)));

start_core_rita_endpoints(workers as usize);
Expand Down
Loading

0 comments on commit 4a77b84

Please sign in to comment.