Browse Source
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)nodeinfo-routing-update
1 changed files with 19 additions and 6 deletions
Loading…
Reference in new issue