X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fnat%2Fnat.c;h=907728fb4dd4ea452e83b2742de2457f8a8d4b71;hb=1ed484dfdf1676d92e95b9ed262abc28ca7b3aee;hp=79088a182fcaa3352c874a49c1bceb16856337d3;hpb=8b4685c894e24dbd9fed9457b4eec9045a0994ed;p=oweals%2Fgnunet.git diff --git a/src/nat/nat.c b/src/nat/nat.c index 79088a182..907728fb4 100644 --- a/src/nat/nat.c +++ b/src/nat/nat.c @@ -69,6 +69,11 @@ enum LocalAddressSource * given in the configuration (i.e. hole-punched DynDNS setup). */ LAL_EXTERNAL_IP, + + /** + * Address was obtained by an external STUN server + */ + LAL_EXTERNAL_STUN_IP, /** * Address was obtained by DNS resolution of the external hostname @@ -1337,8 +1342,8 @@ GNUNET_NAT_register (const struct GNUNET_CONFIGURATION_Handle *cfg, if (NULL != h->address_callback) { - list_interfaces (h, - NULL); + h->ifc_task = GNUNET_SCHEDULER_add_now (&list_interfaces, + h); if (GNUNET_YES == h->use_hostname) h->hostname_task = GNUNET_SCHEDULER_add_now (&resolve_hostname, h);