diff options
author | David Barksdale <amatus@amatus.name> | 2016-11-06 16:36:48 -0600 |
---|---|---|
committer | David Barksdale <amatus@amatus.name> | 2016-11-06 16:36:48 -0600 |
commit | 45c4da39e718f8c40e04db862ccd35b837917247 (patch) | |
tree | 62ca8a0ea9c4ac6305b820893dd119db77922798 | |
parent | f01ae895733b2e0c1716c5034c03d59d16918e2d (diff) |
Set a fake address to make cadet and dht happy
-rw-r--r-- | gnunet-build/packages/gnunet/gnunet/files/plugin_transport_http_client_emscripten.c | 15 |
1 files 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 <amatus@amatus.name> + * @author David Barksdale <amatus@amat.us> */ #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; } |