From 45c4da39e718f8c40e04db862ccd35b837917247 Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Sun, 6 Nov 2016 16:36:48 -0600 Subject: Set a fake address to make cadet and dht happy --- .../files/plugin_transport_http_client_emscripten.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/gnunet-build/packages/gnunet/gnunet/files/plugin_transport_http_client_emscripten.c b/gnunet-build/packages/gnunet/gnunet/files/plugin_transport_http_client_emscripten.c index 800b1d2..f0c05d6 100644 --- a/gnunet-build/packages/gnunet/gnunet/files/plugin_transport_http_client_emscripten.c +++ b/gnunet-build/packages/gnunet/gnunet/files/plugin_transport_http_client_emscripten.c @@ -1,6 +1,6 @@ /* This file is part of GNUnet - Copyright (C) 2002-2015 Christian Grothoff (and other contributing authors) + Copyright (C) 2002-2016 GNUnet e.V. GNUnet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published @@ -19,11 +19,11 @@ */ /** - * @file transport/plugin_transport_http_client.c + * @file transport/plugin_transport_http_client_emscripten.c * @brief HTTP/S client transport plugin * @author Matthias Wachs * @author Christian Grothoff - * @author David Barksdale + * @author David Barksdale */ #if BUILD_HTTPS @@ -1145,6 +1145,15 @@ LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls) LIBGNUNET_PLUGIN_TRANSPORT_DONE (api); return NULL; } + + // fake address for hello expiration + struct GNUNET_HELLO_Address *address; + address = GNUNET_HELLO_address_allocate (plugin->env->my_identity, + "hello", + "world", + 5, + GNUNET_HELLO_ADDRESS_INFO_NONE); + plugin->env->notify_address (plugin->env->cls, GNUNET_YES, address); return api; } -- cgit v1.2.3-18-g5258