gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r24591 - in gnunet/src: peerinfo peerinfo-tool


From: gnunet
Subject: [GNUnet-SVN] r24591 - in gnunet/src: peerinfo peerinfo-tool
Date: Mon, 29 Oct 2012 13:05:08 +0100

Author: grothoff
Date: 2012-10-29 13:05:08 +0100 (Mon, 29 Oct 2012)
New Revision: 24591

Modified:
   gnunet/src/peerinfo-tool/gnunet-peerinfo.c
   gnunet/src/peerinfo/peerinfo.conf.in
Log:
-enable 'hello' URIs for gnunet-uri

Modified: gnunet/src/peerinfo/peerinfo.conf.in
===================================================================
--- gnunet/src/peerinfo/peerinfo.conf.in        2012-10-29 12:00:45 UTC (rev 
24590)
+++ gnunet/src/peerinfo/peerinfo.conf.in        2012-10-29 12:05:08 UTC (rev 
24591)
@@ -20,4 +20,5 @@
 # PREFIX =
 HOSTS = $SERVICEHOME/data/hosts/
 
-
+[uri]
+hello = gnunet-peerinfo

Modified: gnunet/src/peerinfo-tool/gnunet-peerinfo.c
===================================================================
--- gnunet/src/peerinfo-tool/gnunet-peerinfo.c  2012-10-29 12:00:45 UTC (rev 
24590)
+++ gnunet/src/peerinfo-tool/gnunet-peerinfo.c  2012-10-29 12:05:08 UTC (rev 
24591)
@@ -812,8 +812,15 @@
   char *fn;
 
   cfg = c;
-  if (NULL != args[0])
+  if ( (NULL != args[0]) &&
+       (NULL == put_uri) &&
+       (args[0] == strcasestr (args[0], "gnunet://hello/")) )
   {
+    put_uri = GNUNET_strdup (args[0]);
+    args++;
+  }
+  if (NULL != args[0]) 
+  {
     FPRINTF (stderr, 
             _("Invalid command line argument `%s'\n"), 
             args[0]);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]