diff --git a/basic/srv/vm/mgr/tools.py b/basic/srv/vm/mgr/tools.py index 0c4f350..59c8373 100644 --- a/basic/srv/vm/mgr/tools.py +++ b/basic/srv/vm/mgr/tools.py @@ -13,7 +13,7 @@ import subprocess NULL_IP = '[100::1]' def compile_url(domain, port, proto='https'): - port = ':{}'.format(port) if (proto == 'https' and port != '443') or (proto == 'http' and port != '80') else '' + port = '' if (proto == 'https' and port == '443') or (proto == 'http' and port == '80') else ':{}'.format(port) host = '{}{}'.format(domain, port) return '{}://{}'.format(proto, host) if proto is not None else host