mirror of
https://github.com/telemt/telemt.git
synced 2026-04-18 11:04:09 +03:00
Configured middle_proxy_nat_ip for ME Gate on strartup
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user