From d7b004f0ac57028590ba7d3867e3b684c37ec995 Mon Sep 17 00:00:00 2001 From: Username Date: Wed, 18 Feb 2026 00:18:58 +0100 Subject: [PATCH] httpd: include protocol in /proxies plain text format --- httpd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpd.py b/httpd.py index dc2780c..7ae8ac5 100644 --- a/httpd.py +++ b/httpd.py @@ -1588,7 +1588,7 @@ class ProxyAPIServer(threading.Thread): rows = db.execute(sql, args).fetchall() if fmt == 'plain': - return '\n'.join('%s:%s' % (r[0], r[1]) for r in rows), 'text/plain', 200 + return '\n'.join('%s://%s:%s' % (r[2] or 'http', r[0], r[1]) for r in rows), 'text/plain', 200 proxies = [{ 'proxy': '%s:%s' % (r[0], r[1]), 'proto': r[2], 'country': r[3], 'asn': r[4], 'latency': r[5],