ip/torrent: fix webseed when there is only one defined in the torrent file

This commit is contained in:
Jacob Moody 2023-11-26 14:03:31 +00:00
parent 99e2d549e8
commit cbf003434b

View file

@ -1263,7 +1263,7 @@ main(int argc, char *argv[])
if(d = dlook(torrent, "url-list")){
if(d->typ == 's')
wlist = scons(dstr(d->val), wlist);
wlist = scons(dstr(d), wlist);
else for(l = d; l && l->typ == 'l'; l = l->next)
wlist = scons(dstr(l->val), wlist);
/* make wlist into a ring */