ref: d6a253308751dacc7d57823a0762fcfdcddfcaad
parent: 57188959af6a3e40787078503c3130436f352007
author: Jacob Moody <moody@posixcafe.org>
date: Sun Nov 26 09:03:31 EST 2023
ip/torrent: fix webseed when there is only one defined in the torrent file
--- a/sys/src/cmd/ip/torrent.c
+++ b/sys/src/cmd/ip/torrent.c
@@ -1263,7 +1263,7 @@
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 */
--
⑨