+ GET /control/clients/find: add "disallowed" property
This commit is contained in:
@@ -940,7 +940,7 @@ Error response (Client not found):
|
||||
### API: Find clients by IP
|
||||
|
||||
This method returns the list of clients (manual and auto-clients) matching the IP list.
|
||||
For auto-clients only `name`, `ids` and `whois_info` fields are set. Other fields are empty.
|
||||
For auto-clients only `name`, `ids`, `whois_info`, `disallowed` fields are set. Other fields are empty.
|
||||
|
||||
Request:
|
||||
|
||||
@@ -966,11 +966,18 @@ Response:
|
||||
key: "value"
|
||||
...
|
||||
}
|
||||
|
||||
"disallowed": "..."
|
||||
}
|
||||
}
|
||||
...
|
||||
]
|
||||
|
||||
`disallowed`:
|
||||
* "": IP is allowed
|
||||
* not "", e.g. "127.0.0.0/24" - IP is disallowed by "disallowed IP list", and the string contains the matched rule (IP or CIDR)
|
||||
* "not-in-allowed-list" - IP is disallowed by "allowed IP list"
|
||||
|
||||
|
||||
## DNS general settings
|
||||
|
||||
|
||||
Reference in New Issue
Block a user