2022-07-02 20:26:18 +02:00
|
|
|
from enum import Enum
|
|
|
|
|
|
|
|
|
|
|
|
class ProxyProtocol(str, Enum):
|
2022-12-16 21:39:18 +01:00
|
|
|
"""Enumerate proxy protocols."""
|
|
|
|
|
2022-07-02 20:26:18 +02:00
|
|
|
HTTPS = "https"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""HTTPS"""
|
|
|
|
|
2022-07-02 20:26:18 +02:00
|
|
|
HTTP = "http"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""HTTP"""
|
|
|
|
|
2022-07-02 20:26:18 +02:00
|
|
|
SOCKS = "socks"
|
2022-12-16 21:39:18 +01:00
|
|
|
"""SOCKS"""
|
|
|
|
|
2022-07-02 20:26:18 +02:00
|
|
|
SOCKS5 = "socks5"
|
2022-12-29 00:22:53 +01:00
|
|
|
"""SOCKS v5"""
|
|
|
|
|
|
|
|
SOCKS5H = "socks5h"
|
|
|
|
"""SOCKS v5 (+DNS)"""
|
2022-12-16 21:39:18 +01:00
|
|
|
|
2022-07-02 20:26:18 +02:00
|
|
|
SOCKS4 = "socks4"
|
2022-12-29 00:22:53 +01:00
|
|
|
"""SOCKS v4"""
|