diff --git a/bb-library/Server/Manager/Virtualmin.php b/bb-library/Server/Manager/Virtualmin.php index eeefba8..c980100 100644 --- a/bb-library/Server/Manager/Virtualmin.php +++ b/bb-library/Server/Manager/Virtualmin.php @@ -227,7 +227,7 @@ private function _makeRequest($command, $params = array(), $format = 'json') */ private function _getUrl() { - $url = $this->_config['ssl'] ? 'https://' : 'http://'; + $url = $this->_config['host'] ? 'https://' : 'http://'; $url .= $this->_config['host'] . ' : ' . $this->_config['port'] . '/virtual-server/remote.cgi'; return $url; @@ -706,4 +706,4 @@ private function _modifyReseller(Server_Account $a) return false; } -} +}