Configured middle_proxy_nat_ip for ME Gate on strartup

This commit is contained in:
Alexey
2026-03-13 16:52:24 +03:00
parent 690635d904
commit a15f74a6f9
4 changed files with 75 additions and 7 deletions

View File

@@ -638,9 +638,9 @@ impl MePool {
}
}
/// Translate the local ME address into the address material sent to the proxy.
pub fn translate_our_addr(&self, addr: SocketAddr) -> SocketAddr {
let ip = self.translate_ip_for_nat(addr.ip());
SocketAddr::new(ip, addr.port())
self.translate_our_addr_with_reflection(addr, None)
}
pub fn registry(&self) -> &Arc<ConnRegistry> {