aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo-tool
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-10-29 12:05:08 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-10-29 12:05:08 +0000
commitce0ab143f390f5ec89367b01826df2cf67cfe39f (patch)
tree1734f9a6b442c149ad818d814d10ffaaed4331cd /src/peerinfo-tool
parent438262521224b2992e0272907dd0a9eb2cf7fb8f (diff)
-enable 'hello' URIs for gnunet-uri
git-svn-id: https://gnunet.org/svn/gnunet@24591 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/peerinfo-tool')
-rw-r--r--src/peerinfo-tool/gnunet-peerinfo.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c
index ddadcddd2c..b847c0f963 100644
--- a/src/peerinfo-tool/gnunet-peerinfo.c
+++ b/src/peerinfo-tool/gnunet-peerinfo.c
@@ -812,7 +812,14 @@ run (void *cls, char *const *args, const char *cfgfile,
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"),