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],