|
|
@@ -20,7 +20,7 @@ class DnsHelper
|
|
|
|
|
|
public function __construct()
|
|
|
{
|
|
|
- $this->params = $this->getWhmcsParamsByKeys(['domain', 'userid', 'serverhostname', 'username', 'password', 'domainid', 'serverid', 'pid']);
|
|
|
+ $this->params = $this->getWhmcsParamsByKeys(['domain', 'userid', 'serverhostname', 'serverusername', 'serverpassword', 'domainid', 'serverid', 'pid']);
|
|
|
$this->server = Server::select('id', 'nameserver1ip', 'nameserver2ip')->findOrFail($this->params['serverid']);
|
|
|
// $this->nameserver = array(trim($this->server->nameserver1ip), trim($this->server->nameserver2ip));
|
|
|
$this->nameserver = array('127.0.0.1', '127.0.0.2'); //test
|