From f6bd83f9646907f58b17d77c6d02fd74c288c81b Mon Sep 17 00:00:00 2001 From: mkilijanek Date: Mon, 9 Mar 2026 11:18:51 +0100 Subject: [PATCH] fix(core): add missing proxy file loader module --- core/proxy_file.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 core/proxy_file.py diff --git a/core/proxy_file.py b/core/proxy_file.py new file mode 100644 index 0000000..1cacb8b --- /dev/null +++ b/core/proxy_file.py @@ -0,0 +1,13 @@ +from __future__ import annotations + +from typing import List + + +def load_proxy_file(path: str) -> List[str]: + proxies: List[str] = [] + with open(path, encoding="utf-8") as f: + for line in f: + clean = line.strip() + if clean and not clean.startswith("#"): + proxies.append(clean) + return proxies