diff options
author | t3sserakt <t3ss@posteo.de> | 2021-11-29 13:24:29 +0100 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2021-11-29 13:24:29 +0100 |
commit | 297ee1c85e3b8a1745193c854df2dec1126b7b99 (patch) | |
tree | 862872c1f89059dc9a43d21111eba4c932caf15a /src/testing/testing.c | |
parent | fdb9fc3b6f1333a05e093ed1a8aee63d6308ced1 (diff) | |
download | gnunet-297ee1c85e3b8a1745193c854df2dec1126b7b99.tar.gz gnunet-297ee1c85e3b8a1745193c854df2dec1126b7b99.zip |
- added number of unintentional connects to connect cmd, fixed bugs in tcp communicator and tng service, added method to get a cmd not restricted to future or past cmds
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, | |||
2312 | { | 2312 | { |
2313 | template = KNOWN_CONNECT_ADDRESS_TEMPLATE; | 2313 | template = KNOWN_CONNECT_ADDRESS_TEMPLATE; |
2314 | } | 2314 | } |
2315 | else | 2315 | else if (1 == connection->node_n) |
2316 | { | 2316 | { |
2317 | template = ROUTER_CONNECT_ADDRESS_TEMPLATE; | 2317 | template = ROUTER_CONNECT_ADDRESS_TEMPLATE; |
2318 | } | 2318 | } |
2319 | else | ||
2320 | { | ||
2321 | return NULL; | ||
2322 | } | ||
2319 | 2323 | ||
2320 | if (0 == strcmp (PREFIX_TCP, prefix)) | 2324 | if (0 == strcmp (PREFIX_TCP, prefix)) |
2321 | { | 2325 | { |