From bf513b9ffda5849064ace9ec9034d6c99c6991f4 Mon Sep 17 00:00:00 2001 From: Mark Schouten Date: Wed, 22 Aug 2018 15:21:26 +0200 Subject: [PATCH] Assume that we have Pdns > 4.x --- includes/class/ApiHandler.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/includes/class/ApiHandler.php b/includes/class/ApiHandler.php index cda5c66..8653974 100644 --- a/includes/class/ApiHandler.php +++ b/includes/class/ApiHandler.php @@ -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"); - } - + $this->apiurl = $tmp->json["url"]; } private function curlopts() {