4fcdfc15f95be66a71e78839ff1905dc08ad084d
Test now verifies that NAT IP:port exactly matches client's local bind: - Gets expected port from client socket using getsockname() - Compares nat_port with expected_client_port for exact match - Validates nat_ip equals 127.0.0.1 (localhost test) - Fails test if values don't match exactly This ensures the server correctly returns the client's actual address in the INIT_RESPONSE handshake without any modification. Test output: [TEST] Client socket bound to port 9012 (expected NAT port) [CLIENT] PASS: NAT address is set: 127.0.0.1:9012 [CLIENT] PASS: nat_changes_count=0, nat_hits_count=0 [CLIENT] PASS: NAT IP and port match exactly (127.0.0.1:9012)
…
Languages
C
64.6%
C++
17.1%
Kotlin
9.4%
HTML
5.8%
Python
1.2%
Other
1.7%