mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 13:47:39 +03:00
-list: only copy nofilter flag for ODoH relays
This commit is contained in:
parent
1a9bf8a286
commit
0232870870
1 changed files with 7 additions and 2 deletions
|
@ -797,14 +797,19 @@ func (config *Config) printRegisteredServers(proxy *Proxy, jsonOutput bool, incl
|
||||||
if len(addrStr) > 0 {
|
if len(addrStr) > 0 {
|
||||||
addrs = append(addrs, hostAddr)
|
addrs = append(addrs, hostAddr)
|
||||||
}
|
}
|
||||||
|
nolog := true
|
||||||
|
nofilter := true
|
||||||
|
if registeredRelay.stamp.Proto == stamps.StampProtoTypeODoHRelay {
|
||||||
|
nolog = registeredRelay.stamp.Props&stamps.ServerInformalPropertyNoLog != 0
|
||||||
|
}
|
||||||
serverSummary := ServerSummary{
|
serverSummary := ServerSummary{
|
||||||
Name: registeredRelay.name,
|
Name: registeredRelay.name,
|
||||||
Proto: registeredRelay.stamp.Proto.String(),
|
Proto: registeredRelay.stamp.Proto.String(),
|
||||||
IPv6: strings.HasPrefix(addrStr, "["),
|
IPv6: strings.HasPrefix(addrStr, "["),
|
||||||
Ports: []int{port},
|
Ports: []int{port},
|
||||||
Addrs: addrs,
|
Addrs: addrs,
|
||||||
NoLog: registeredRelay.stamp.Props&stamps.ServerInformalPropertyNoLog != 0,
|
NoLog: nolog,
|
||||||
NoFilter: registeredRelay.stamp.Props&stamps.ServerInformalPropertyNoFilter != 0,
|
NoFilter: nofilter,
|
||||||
Description: registeredRelay.description,
|
Description: registeredRelay.description,
|
||||||
Stamp: registeredRelay.stamp.String(),
|
Stamp: registeredRelay.stamp.String(),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue