From: Christian Grothoff Date: Mon, 1 Nov 2010 22:24:02 +0000 (+0000) Subject: allow loc X-Git-Tag: initial-import-from-subversion-38251~19885 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=51e85ed008b667988209470edc301977bbe04ec8;p=oweals%2Fgnunet.git allow loc --- diff --git a/src/fs/gnunet-download.c b/src/fs/gnunet-download.c index 6f7854756..36681e407 100644 --- a/src/fs/gnunet-download.c +++ b/src/fs/gnunet-download.c @@ -186,10 +186,11 @@ run (void *cls, ret = 1; return; } - if (! GNUNET_FS_uri_test_chk (uri)) + if ( (! GNUNET_FS_uri_test_chk (uri)) && + (! GNUNET_FS_uri_test_loc (uri)) ) { fprintf (stderr, - "Only CHK URIs supported right now.\n"); + "Only CHK or LOC URIs supported.\n"); ret = 1; GNUNET_FS_uri_destroy (uri); return;