feat: add PublicDomain in config.ini
DMZ in stupid routers sucks Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
parent
25768e4c90
commit
e5277d50f8
3 changed files with 6 additions and 4 deletions
3
main.py
3
main.py
|
@ -34,9 +34,10 @@ def main() -> None:
|
|||
|
||||
|
||||
def validate_config() -> None:
|
||||
# TODO: do some PublicDomain checks or something
|
||||
# noinspection PyBroadException
|
||||
try:
|
||||
response = requests.get(f"https://{config.get('Service', 'Domain')}/profile.json")
|
||||
response = requests.get(f"http://{config.get('Service', 'Domain')}/profile.json")
|
||||
if response.status_code != 200:
|
||||
raise
|
||||
except:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue