From 43c2564f97076d9333fb7d23ab55aed3addddc10 Mon Sep 17 00:00:00 2001 From: Pedro de Oliveira Guedes Date: Thu, 17 Feb 2022 09:52:34 -0300 Subject: [PATCH] Changing the endpoint to be caught from an environment variable. --- api/anticaptcha/cli.py | 2 +- api/apiproxy/cli.py | 2 +- api/autohotkey/cli.py | 2 +- api/autoit/cli.py | 2 +- api/chrome/cli.py | 2 +- api/excel/cli.py | 2 +- api/ocr/cli.py | 2 +- api/replay/cli.py | 2 +- api/wingui/cli.py | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/api/anticaptcha/cli.py b/api/anticaptcha/cli.py index 251604b..1af13a0 100644 --- a/api/anticaptcha/cli.py +++ b/api/anticaptcha/cli.py @@ -12,7 +12,7 @@ class AntiCaptcha: ep: str = "" def __init__(self) -> None: - self.ep = "https://localhost:8443" + self.ep = os.environ.get("REPLAY_ADDR") def __request_json_post__ (self, path: str, object: dict): """ diff --git a/api/apiproxy/cli.py b/api/apiproxy/cli.py index 2c53ac9..3a336b3 100644 --- a/api/apiproxy/cli.py +++ b/api/apiproxy/cli.py @@ -33,7 +33,7 @@ class API_Proxy: } def __init__ (self): - self.ep = "https://localhost:8443" + self.ep = os.environ.get("REPLAY_ADDR") def __request_json_post__(self, path: str, object: dict): diff --git a/api/autohotkey/cli.py b/api/autohotkey/cli.py index 0b27a4b..0b67f76 100644 --- a/api/autohotkey/cli.py +++ b/api/autohotkey/cli.py @@ -16,7 +16,7 @@ class AutoHotKey: ep: str = "" def __init__ (self): - self.ep = "https://localhost:8443" + self.ep = os.environ.get("REPLAY_ADDR") def __request_raw_post__ (self, path: str, data: str = ""): diff --git a/api/autoit/cli.py b/api/autoit/cli.py index 6b72139..c3d8b21 100644 --- a/api/autoit/cli.py +++ b/api/autoit/cli.py @@ -16,7 +16,7 @@ class AutoIt: ep: str = "" def __init__ (self): - self.ep = "https://localhost:8443" + self.ep = os.environ.get("REPLAY_ADDR") def __request_raw_post__ (self, path: str, data: str = ""): diff --git a/api/chrome/cli.py b/api/chrome/cli.py index 69e278e..1619aa2 100644 --- a/api/chrome/cli.py +++ b/api/chrome/cli.py @@ -21,7 +21,7 @@ class Chrome: ep: str = "" def __init__(self): - self.ep = "https://localhost:8443" + self.ep = os.environ.get("REPLAY_ADDR") def __request_get__(self, data: str): diff --git a/api/excel/cli.py b/api/excel/cli.py index ee82721..ab5a371 100644 --- a/api/excel/cli.py +++ b/api/excel/cli.py @@ -13,7 +13,7 @@ class Excel: ep: str = "" def __init__ (self): - self.ep = "https://localhost:8443" + self.ep = os.environ.get("REPLAY_ADDR") def __request_json_post__ (self, path: str, object: dict): diff --git a/api/ocr/cli.py b/api/ocr/cli.py index d6a3120..e78a660 100644 --- a/api/ocr/cli.py +++ b/api/ocr/cli.py @@ -13,7 +13,7 @@ class Ocr: ep: str = "" def __init__ (self): - self.ep = "https://localhost:8443" + self.ep = os.environ.get("REPLAY_ADDR") def __request_json_post__ (self, path: str, object: dict): diff --git a/api/replay/cli.py b/api/replay/cli.py index ad22a5b..10bc9a6 100644 --- a/api/replay/cli.py +++ b/api/replay/cli.py @@ -16,7 +16,7 @@ class Replay: ep: str = "" def __init__ (self): - self.ep = "https://localhost:8443" + self.ep = os.environ.get("REPLAY_ADDR") def __request_get__ (self, data: str): diff --git a/api/wingui/cli.py b/api/wingui/cli.py index 2105a4f..25c7731 100644 --- a/api/wingui/cli.py +++ b/api/wingui/cli.py @@ -17,7 +17,7 @@ class Wingui: ep: str = "" def __init__(self): - self.ep = "https://localhost:8443" + self.ep = os.environ.get("REPLAY_ADDR") def __requestget__(self, data: str):