all: imp docs

This commit is contained in:
Stanislav Chzhen 2025-03-10 16:06:48 +03:00
parent 0a25e1e8f3
commit 9a746ee9a0
3 changed files with 5 additions and 4 deletions
internal/filtering
openapi

View file

@ -86,6 +86,7 @@ type Config struct {
// ApplyClientFiltering retrieves persistent client information using the
// ClientID or client IP address, and applies it to the filtering settings.
// It must not be nil.
ApplyClientFiltering func(clientID string, cliAddr netip.Addr, setts *Settings) `yaml:"-"`
// BlockedServices is the configuration of blocked services.

View file

@ -522,11 +522,11 @@ func stringToDNSType(str string) (qtype uint16, err error) {
}
val, err := strconv.ParseUint(str[len(typePref):], 10, 16)
if err == nil {
return uint16(val), nil
if err != nil {
return 0, errors.ErrBadEnumValue
}
return 0, errors.ErrBadEnumValue
return uint16(val), nil
}
// setProtectedBool sets the value of a boolean pointer under a lock. l must

View file

@ -740,7 +740,7 @@
'in': 'query'
'description': 'Filter by host name'
'required': true
'example': 'client_name'
'example': 'google.com'
'schema':
'type': 'string'
- 'name': 'client'