mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
IP address restriction for ip field in add_service_for_host removed as this restriction is not in the Web front end, and doesn't allow https sites to be added correctly. (#10810)
This commit is contained in:
@@ -2177,9 +2177,6 @@ function add_service_for_host(\Illuminate\Http\Request $request)
|
||||
if (!empty($missing_fields)) {
|
||||
return api_error(400, sprintf("Service field%s %s missing: %s.", ((sizeof($missing_fields)>1)?'s':''), ((sizeof($missing_fields)>1)?'are':'is'), implode(', ', $missing_fields)));
|
||||
}
|
||||
if (!filter_var($data['ip'], FILTER_VALIDATE_IP)) {
|
||||
return api_error(400, 'service_ip is not a valid IP address.');
|
||||
}
|
||||
|
||||
// Check if service type exists
|
||||
if (!in_array($data['type'], list_available_services())) {
|
||||
|
Reference in New Issue
Block a user