From 563957cc708654174989b61dff5966bc46ee57c8 Mon Sep 17 00:00:00 2001 From: mlgtcode <107129718+mlgtcode@users.noreply.github.com> Date: Thu, 9 Jun 2022 15:51:10 +0200 Subject: [PATCH] adding https support make the checkbox "Use Secure connection:" working --- src/bb-library/Server/Manager/Directadmin.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/bb-library/Server/Manager/Directadmin.php b/src/bb-library/Server/Manager/Directadmin.php index edde7f9f9..5868398b5 100644 --- a/src/bb-library/Server/Manager/Directadmin.php +++ b/src/bb-library/Server/Manager/Directadmin.php @@ -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()