9 lines
313 B
Python
9 lines
313 B
Python
def calc_web_address(domain_name: str, port: str, local_location: str) -> str:
|
|
if not domain_name or not port:
|
|
return
|
|
web_address = f'https://{domain_name}'
|
|
if port != '443':
|
|
web_address += f':{port}'
|
|
if local_location:
|
|
web_address += local_location
|
|
return web_address
|