#!/bin/bash

## Copyright (C) 2020 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
## See the file COPYING for copying conditions.

## Find out which onions are available over TLS.

while read -r -d $'\n' line ; do
   read -r first_word _ <<< "$line"
   url_https="$(echo "$first_word" | str_replace "http://" "https://")"
   curl --head "$url_https"
done < <( /usr/share/sdwdate/onion-list-all )
