adding https support

make the checkbox "Use Secure connection:" working
This commit is contained in:
mlgtcode authored and GitHub committed 2022-06-09 15:51:10 +02:00
1 parent 366572908d
commit 563957cc70
1 file changed
+5 -2
@@ -42,8 +42,11 @@ class Server_Manager_Directadmin extends Server_Manager
public function getLoginUrl()
{
$host = $this->_config['host'];
return 'http://' . $host . ':2222';
$protocol = 'https://';
if (!$this->_config['secure']) {
$protocol = 'http://';
}
return $protocol.$this->_config['host'] . ':2222';
}
public function getResellerLoginUrl()