allow for searching by IP
This commit is contained in:
@@ -463,6 +463,15 @@ public static class AdminRoutes
|
||||
IPAddress? filterIp = null;
|
||||
if (payload.filterIp != null)
|
||||
{
|
||||
if (!IPAddress.TryParse(payload.filterIp, out var ip)) {
|
||||
context.Response.StatusCode = 400;
|
||||
return Results.Json(new AdminUsersResponse
|
||||
{
|
||||
success = false,
|
||||
error = "Invalid filterIp"
|
||||
}, Utilities.JsonSerializerOptions);
|
||||
}
|
||||
|
||||
filterIp = IPAddress.Parse(payload.filterIp);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"profiles": {
|
||||
"CollabVMAuthServer": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:51282;http://localhost:51283"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user