mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
@@ -82,7 +82,6 @@
|
||||
return errorJsonResponse("This domain already has a custom DNS entry for an IPv" . $ipType);
|
||||
|
||||
exec("sudo pihole -a addcustomdns ".$ip." ".$domain);
|
||||
exec("sudo pihole -a restartdns");
|
||||
|
||||
return successJsonResponse();
|
||||
}
|
||||
@@ -119,7 +118,6 @@
|
||||
return errorJsonResponse("This domain/ip association does not exist");
|
||||
|
||||
exec("sudo pihole -a removecustomdns ".$ip." ".$domain);
|
||||
exec("sudo pihole -a restartdns");
|
||||
|
||||
return successJsonResponse();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user