Do not insert 'localhost', we are autodetecting the API url

This commit is contained in:
Mark Schouten 2018-08-22 15:39:11 +02:00
parent bf513b9ffd
commit be647cc26a

View file

@ -64,7 +64,7 @@ class PdnsAPI {
if (!isset($zone['serial']) or gettype($zone['serial']) != 'integer') { if (!isset($zone['serial']) or gettype($zone['serial']) != 'integer') {
$api->method = 'POST'; $api->method = 'POST';
$api->url = '/localhost/zones'; $api->url = '/zones';
$api->content = json_encode($zonedata); $api->content = json_encode($zonedata);
$api->call(); $api->call();