Move Verizon endpoint config into plugin
This commit is contained in:
@@ -100,7 +100,6 @@ class AppConfig:
|
||||
source_name: str
|
||||
provider_name: str
|
||||
npm_endpoints: tuple[Endpoint, ...]
|
||||
verizon_endpoints: tuple[Endpoint, ...]
|
||||
proxy_ip: str
|
||||
proxy_api_port: int
|
||||
proxy_api_scheme: str
|
||||
@@ -122,12 +121,6 @@ class AppConfig:
|
||||
source_name = os.getenv("PROXY", "npm").strip().lower()
|
||||
provider_name = os.getenv("DNS_PROVIDER", "verizon").strip().lower()
|
||||
|
||||
verizon_endpoints = parse_endpoint_list(
|
||||
"verizon",
|
||||
os.getenv("VERIZON_ENDPOINTS", "192.168.1.1"),
|
||||
443,
|
||||
)
|
||||
|
||||
try:
|
||||
port = int(os.getenv("PROXY_API_PORT", "81"))
|
||||
except ValueError as exc:
|
||||
@@ -195,7 +188,6 @@ class AppConfig:
|
||||
source_name=source_name,
|
||||
provider_name=provider_name,
|
||||
npm_endpoints=npm_endpoints,
|
||||
verizon_endpoints=verizon_endpoints,
|
||||
proxy_ip=proxy_ip,
|
||||
proxy_api_port=port,
|
||||
proxy_api_scheme=scheme,
|
||||
|
||||
Reference in New Issue
Block a user