diff options
Diffstat (limited to 'src/fs/fs_download.c')
-rw-r--r-- | src/fs/fs_download.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c index 14e6266f8..fe9c18aa1 100644 --- a/src/fs/fs_download.c +++ b/src/fs/fs_download.c | |||
@@ -1150,6 +1150,10 @@ transmit_download_request (void *cls, | |||
1150 | memset (sm, 0, sizeof (struct SearchMessage)); | 1150 | memset (sm, 0, sizeof (struct SearchMessage)); |
1151 | sm->header.size = htons (sizeof (struct SearchMessage)); | 1151 | sm->header.size = htons (sizeof (struct SearchMessage)); |
1152 | sm->header.type = htons (GNUNET_MESSAGE_TYPE_FS_START_SEARCH); | 1152 | sm->header.type = htons (GNUNET_MESSAGE_TYPE_FS_START_SEARCH); |
1153 | if (0 != (dc->options & GNUNET_FS_DOWNLOAD_OPTION_LOOPBACK_ONLY)) | ||
1154 | sm->options = htonl (1); | ||
1155 | else | ||
1156 | sm->options = htonl (0); | ||
1153 | if (dc->pending->depth == dc->treedepth) | 1157 | if (dc->pending->depth == dc->treedepth) |
1154 | sm->type = htonl (GNUNET_BLOCK_TYPE_DBLOCK); | 1158 | sm->type = htonl (GNUNET_BLOCK_TYPE_DBLOCK); |
1155 | else | 1159 | else |