dataset/seed/applicationservice/2022.03.08/reverse-proxy-client/funcs/revprox_client.py

8 lines
254 B
Python
Raw Normal View History

2022-03-08 19:42:28 +01:00
def calc_web_address(domain_name:str, port:str, local_location:str):
if not domain_name or not port:
return
web_address = f'https://{domain_name}:{port}'
if local_location:
web_address += local_location
return web_address