diff --git a/rootfs/usr/local/etc/docker/init.d/03-tor-server.sh b/rootfs/usr/local/etc/docker/init.d/03-tor-server.sh
index 445c6e8..6184d40 100755
--- a/rootfs/usr/local/etc/docker/init.d/03-tor-server.sh
+++ b/rootfs/usr/local/etc/docker/init.d/03-tor-server.sh
@@ -359,9 +359,13 @@ __post_execute() {
pgrep unbound && break || sleep 30
done
if [ -d "$DATA_DIR/services" ]; then
+ [ -f "$WWW_ROOT_DIR/hostnames.html" ] && rm -f "$WWW_ROOT_DIR/hostnames.html"
for d in "$DATA_DIR/services"/*;do
for host in "$d"/hostname; do
- echo "$d: $host"
+ name=$d
+ url="$(<"$host")"
+ echo "$name: http://$url"
+ echo ''$name'
' >>"$WWW_ROOT_DIR/hostnames.html"
done
done
fi