1
This commit is contained in:
1 parent
173f2c33c7
commit
eb6197bacb
2 files changed
+2
-2
No files matched your search
@@ -1465,7 +1465,7 @@ process_decrypted:
|
||||
link->nat_ip = new_nat_ip;
|
||||
link->nat_port = new_nat_port;
|
||||
struct in_addr addr;
|
||||
addr.s_addr = htonl(new_nat_ip);
|
||||
addr.s_addr = new_nat_ip;
|
||||
DEBUG_INFO(DEBUG_CATEGORY_CONNECTION, "[%s] NAT address initialized: %s:%u",
|
||||
link->etcp->log_name, ip_to_str(&addr, AF_INET).str, new_nat_port);
|
||||
} else if (link->nat_ip != new_nat_ip || link->nat_port != new_nat_port) {
|
||||
|
||||
+1
-1
@@ -703,7 +703,7 @@ static void route_bgp_start_link_nat_check(struct ROUTE_BGP* bgp, struct ETCP_LI
|
||||
target_port = ntohs(sin->sin_port);
|
||||
}
|
||||
|
||||
// if (!is_local_subnet(target_ip)) { DEBUG_DEBUG(DEBUG_CATEGORY_BGP, "local ip: %s, skip nat check", ip_to_str(&target_ip, AF_INET).str); return; }
|
||||
if (is_local_subnet(target_ip)) { DEBUG_DEBUG(DEBUG_CATEGORY_BGP, "local connection: %s, skip nat check", ip_to_str(&target_ip, AF_INET).str); return; }
|
||||
|
||||
// Allocate callback arg
|
||||
struct nat_check_arg* arg = u_calloc(1, sizeof(struct nat_check_arg));
|
||||
|
||||
Reference in new issue
Block a user