From b0fe54d034bbb61bb7775eecb58498ff1fd7111f Mon Sep 17 00:00:00 2001 From: Disassembler Date: Mon, 17 Sep 2018 16:12:17 +0200 Subject: [PATCH] Fix VMMgr URL compilation --- basic/srv/vm/mgr/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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