Assume that we have Pdns > 4.x

This commit is contained in:
Mark Schouten 2018-08-22 15:21:26 +02:00
parent 880508f585
commit bf513b9ffd

View file

@ -32,13 +32,7 @@ class ApiHandler {
$tmp->url = '/api/v1/servers/localhost';
$tmp->go();
$v = intval(substr($tmp->json["version"],0,1));
if ($v == 4) {
$this->apiurl = $tmp->json["url"];
} else {
throw new Exception("Unsupported API version");
}
}
private function curlopts() {