ignore hostname if we have unixpath
authorChristian Grothoff <christian@grothoff.org>
Sat, 23 Jun 2018 14:32:26 +0000 (16:32 +0200)
committerChristian Grothoff <christian@grothoff.org>
Sat, 23 Jun 2018 14:35:06 +0000 (16:35 +0200)
src/include/gnunet_gnsrecord_lib.h
src/util/resolver_api.c

index b3f1eb632d09938c7e3c12c6f1f59111c85d701b..20846238b4d8a6e851fdb255cbfd1c1ae0a289d6 100644 (file)
@@ -499,10 +499,10 @@ GNUNET_GNSRECORD_pkey_to_zkey (const struct GNUNET_CRYPTO_EcdsaPublicKey *pkey);
 
 
 /**
- * Convert an absolute domain name in the ".zkey" pTLD to the
+ * Convert an absolute domain name to the
  * respective public key.
  *
- * @param zkey string "X.zkey" where X is the public
+ * @param zkey string "X" where X is the public
  *         key in an encoding suitable for DNS labels.
  * @param pkey set to a public key on the eliptic curve
  * @return #GNUNET_SYSERR if @a zkey has the wrong syntax
index b2e6a4986e27a52a0d1cba1384a52c6cafadcb3c..afebabf08e196eb2f743ed26d9dca4fbf1321b48 100644 (file)
@@ -180,6 +180,11 @@ check_config ()
   struct sockaddr_in v4;
   struct sockaddr_in6 v6;
 
+  if (GNUNET_OK ==
+      GNUNET_CONFIGURATION_have_value (resolver_cfg,
+                                      "resolver",
+                                      "UNIXPATH"))
+    return GNUNET_OK;
   memset (&v4, 0, sizeof (v4));
   v4.sin_addr.s_addr = htonl (INADDR_LOOPBACK);
   v4.sin_family = AF_INET;