diff options
author | Daniel Golle <daniel@makrotopia.org> | 2016-08-04 11:35:25 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2016-08-04 11:35:25 +0000 |
commit | 1d94ddddab8ba2ec45ad00878cab6a29eddf51d9 (patch) | |
tree | aad14bb5c7d51b27f91c6ec666114aa61d8e7295 /src/transport/plugin_transport_tcp.c | |
parent | 9be2801b4c6c1efeffc969553c148eed70eedf09 (diff) | |
download | gnunet-1d94ddddab8ba2ec45ad00878cab6a29eddf51d9.tar.gz gnunet-1d94ddddab8ba2ec45ad00878cab6a29eddf51d9.zip |
transport_tcp: make use of GNUNET_HELLO_address_check_option
probably this was forgotten earlier
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 02c0afaad..79361d3f2 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -540,9 +540,8 @@ notify_session_monitor (struct Plugin *plugin, | |||
540 | return; | 540 | return; |
541 | memset (&info, 0, sizeof (info)); | 541 | memset (&info, 0, sizeof (info)); |
542 | info.state = state; | 542 | info.state = state; |
543 | info.is_inbound = (0 != (GNUNET_HELLO_ADDRESS_INFO_INBOUND & session->address->local_info)) | 543 | info.is_inbound = GNUNET_HELLO_address_check_option (session->address, |
544 | ? GNUNET_YES | 544 | GNUNET_HELLO_ADDRESS_INFO_INBOUND); |
545 | : GNUNET_NO; | ||
546 | info.num_msg_pending = session->msgs_in_queue; | 545 | info.num_msg_pending = session->msgs_in_queue; |
547 | info.num_bytes_pending = session->bytes_in_queue; | 546 | info.num_bytes_pending = session->bytes_in_queue; |
548 | if (NULL != session->receive_delay_task) | 547 | if (NULL != session->receive_delay_task) |