remove useless code

This commit is contained in:
2025-05-23 21:30:35 +08:00
parent 4a28fb3217
commit 9451968604

View File

@ -136,7 +136,6 @@ def parse_format_default(line):
def get_servers_from_subscribe_url(url):
servers = []
try:
host = match(r"^(?:(?:https?)|(?:file)):\/\/([\w\.]*?)(?:[\/\?\#].*)?$", url)[1]
req = request.Request(url, headers={
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",