diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-10-29 12:05:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-10-29 12:05:08 +0000 |
commit | e6a7426e11d0918811044e4d5476894323c37586 (patch) | |
tree | 1734f9a6b442c149ad818d814d10ffaaed4331cd /src | |
parent | 75bebe4af5841951ef7d4dfe47b70c26da15fae1 (diff) | |
download | gnunet-e6a7426e11d0918811044e4d5476894323c37586.tar.gz gnunet-e6a7426e11d0918811044e4d5476894323c37586.zip |
-enable 'hello' URIs for gnunet-uri
Diffstat (limited to 'src')
-rw-r--r-- | src/peerinfo-tool/gnunet-peerinfo.c | 9 | ||||
-rw-r--r-- | src/peerinfo/peerinfo.conf.in | 3 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c index ddadcddd2..b847c0f96 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, | |||
812 | char *fn; | 812 | char *fn; |
813 | 813 | ||
814 | cfg = c; | 814 | cfg = c; |
815 | if (NULL != args[0]) | 815 | if ( (NULL != args[0]) && |
816 | (NULL == put_uri) && | ||
817 | (args[0] == strcasestr (args[0], "gnunet://hello/")) ) | ||
818 | { | ||
819 | put_uri = GNUNET_strdup (args[0]); | ||
820 | args++; | ||
821 | } | ||
822 | if (NULL != args[0]) | ||
816 | { | 823 | { |
817 | FPRINTF (stderr, | 824 | FPRINTF (stderr, |
818 | _("Invalid command line argument `%s'\n"), | 825 | _("Invalid command line argument `%s'\n"), |
diff --git a/src/peerinfo/peerinfo.conf.in b/src/peerinfo/peerinfo.conf.in index 6bf766d28..34015b558 100644 --- a/src/peerinfo/peerinfo.conf.in +++ b/src/peerinfo/peerinfo.conf.in | |||
@@ -20,4 +20,5 @@ UNIX_MATCH_GID = YES | |||
20 | # PREFIX = | 20 | # PREFIX = |
21 | HOSTS = $SERVICEHOME/data/hosts/ | 21 | HOSTS = $SERVICEHOME/data/hosts/ |
22 | 22 | ||
23 | 23 | [uri] | |
24 | hello = gnunet-peerinfo | ||