Skip to content

Commit

Permalink
fixup: servers -> addrs
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Aug 13, 2024
1 parent dc91345 commit 2b1ab85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions talpid-tunnel/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ pub struct TunnelMetadata {
impl TunnelMetadata {
/// Return a copy of all gateway addresses
pub fn gateways(&self) -> Vec<IpAddr> {
let mut servers = vec![self.ipv4_gateway.into()];
let mut addrs = vec![self.ipv4_gateway.into()];
if let Some(gateway) = self.ipv6_gateway {
servers.push(gateway.into());
addrs.push(gateway.into());
}
servers
addrs
}
}

Expand Down

0 comments on commit 2b1ab85

Please sign in to comment.