mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
ip/torrent: fix webseed when there is only one defined in the torrent file
This commit is contained in:
parent
99e2d549e8
commit
cbf003434b
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue