mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-04-01 06:53:30 +03:00
all: imp docs
This commit is contained in:
parent
0a25e1e8f3
commit
9a746ee9a0
3 changed files with 5 additions and 4 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -740,7 +740,7 @@
|
|||
'in': 'query'
|
||||
'description': 'Filter by host name'
|
||||
'required': true
|
||||
'example': 'client_name'
|
||||
'example': 'google.com'
|
||||
'schema':
|
||||
'type': 'string'
|
||||
- 'name': 'client'
|
||||
|
|
Loading…
Add table
Reference in a new issue