Browse Source

Fix port conflicts in test_pkt_normalizer_etcp - use unique ports 9041/9042

nodeinfo-routing-update
jeka 2 months ago
parent
commit
a0b02b9812
  1. 10
      tests/test_pkt_normalizer_etcp.c

10
tests/test_pkt_normalizer_etcp.c

@ -38,7 +38,7 @@ static char temp_dir[] = "/tmp/utun_test_XXXXXX";
static char server_config_path[256];
static char client_config_path[256];
// Server config content (uses ports 9031)
// Server config content (uses ports 9041 - unique to avoid conflicts)
static const char* server_config_content =
"[global]\n"
"my_node_id=0x1111111111111111\n"
@ -48,10 +48,10 @@ static const char* server_config_content =
"tun_ifname=tun99\n"
"\n"
"[server: test]\n"
"addr=127.0.0.1:9031\n"
"addr=127.0.0.1:9041\n"
"type=public\n";
// Client config content (uses ports 9032)
// Client config content (uses ports 9042 - unique to avoid conflicts)
static const char* client_config_content =
"[global]\n"
"my_node_id=0x2222222222222222\n"
@ -61,13 +61,13 @@ static const char* client_config_content =
"tun_ifname=tun98\n"
"\n"
"[server: test]\n"
"addr=127.0.0.1:9032\n"
"addr=127.0.0.1:9042\n"
"type=public\n"
"\n"
"[client: test_client]\n"
"keepalive=1\n"
"peer_public_key=1c55e4ccae7c4470707759086738b10681bf88b81f198cc2ab54a647d1556e17c65e6b1833e0c771e5a39382c03067c388915a4c732191bc130480f20f8e00b9\n"
"link=test:127.0.0.1:9031\n";
"link=test:127.0.0.1:9041\n";
// Create temp config files
static int create_temp_configs(void) {

Loading…
Cancel
Save