diff options
Diffstat (limited to 'src/testing/testing.c')
-rw-r--r-- | src/testing/testing.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/testing/testing.c b/src/testing/testing.c index 9e664292b..7474d9b5f 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c @@ -2312,10 +2312,14 @@ GNUNET_TESTING_get_address (struct GNUNET_TESTING_NodeConnection *connection, { template = KNOWN_CONNECT_ADDRESS_TEMPLATE; } - else + else if (1 == connection->node_n) { template = ROUTER_CONNECT_ADDRESS_TEMPLATE; } + else + { + return NULL; + } if (0 == strcmp (PREFIX_TCP, prefix)) { |