Skip to content

Commit

Permalink
fix: wireguard broadcast ip
Browse files Browse the repository at this point in the history
  • Loading branch information
ParzivalEugene committed Aug 2, 2024
1 parent f5bb39d commit ba28066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn main() -> Result<(), Error> {
id = counter;
state.lock()?.counter += 1;
}
let ip = Ipv4Addr::from(id as u32 + 1 + u32::from(ENV.subnet));
let ip = Ipv4Addr::from(id as u32 + 2 + u32::from(ENV.subnet));
let new_peer = add_config(&ip)?;
let config = Peer::new(new_peer, ip);
state.lock()?.peers.lock()?.push(config);
Expand Down

0 comments on commit ba28066

Please sign in to comment.