Rename host_addr to endpoint_bind_addr

This commit is contained in:
Jackson Coxson 2022-06-23 23:01:32 -06:00
parent 3ab108ad04
commit c647bc9a96
2 changed files with 7 additions and 7 deletions

View file

@ -36,7 +36,7 @@ impl WireGuardTunnel {
let source_peer_ip = config.source_peer_ip;
let peer = Self::create_tunnel(config)?;
let endpoint = config.endpoint_addr;
let udp = UdpSocket::bind(config.host_addr)
let udp = UdpSocket::bind(config.endpoint_bind_addr)
.await
.with_context(|| "Failed to create UDP socket for WireGuard connection")?;