From e5f3eff760f041216d32df851d4a24c31c657b42 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 23 Oct 2019 23:28:46 +0200 Subject: [PATCH] Add DNS stamps to JSON output --- dnscrypt-proxy/config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dnscrypt-proxy/config.go b/dnscrypt-proxy/config.go index 3f22c11d..4de05036 100644 --- a/dnscrypt-proxy/config.go +++ b/dnscrypt-proxy/config.go @@ -191,6 +191,7 @@ type ServerSummary struct { NoLog bool `json:"nolog"` NoFilter bool `json:"nofilter"` Description string `json:"description,omitempty"` + Stamp string `json:"stamp"` } func findConfigFile(configFile *string) (string, error) { @@ -547,6 +548,7 @@ func (config *Config) printRegisteredServers(proxy *Proxy, jsonOutput bool) { NoLog: registeredServer.stamp.Props&stamps.ServerInformalPropertyNoLog != 0, NoFilter: registeredServer.stamp.Props&stamps.ServerInformalPropertyNoFilter != 0, Description: registeredServer.description, + Stamp: registeredServer.stamp.String() } if jsonOutput { summary = append(summary, serverSummary)