allow loc
authorChristian Grothoff <christian@grothoff.org>
Mon, 1 Nov 2010 22:24:02 +0000 (22:24 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 1 Nov 2010 22:24:02 +0000 (22:24 +0000)
src/fs/gnunet-download.c

index 6f7854756b588ebd7a75bc8368b452cf5cc34b75..36681e40714cf429b8ea225443a5607be80f7e09 100644 (file)
@@ -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;