Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions dnscrypt-proxy/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ type PluginsState struct {
synthResponse *dns.Msg
questionMsg *dns.Msg
xTransport *XTransport
proxy *Proxy
sessionData map[string]interface{}
action PluginsAction
timeout time.Duration
Expand Down Expand Up @@ -269,6 +270,7 @@ func NewPluginsState(
maxUnencryptedUDPSafePayloadSize: MaxDNSUDPSafePacketSize,
sessionData: make(map[string]interface{}),
xTransport: proxy.xTransport,
proxy: proxy,
}
}

Expand Down Expand Up @@ -403,5 +405,7 @@ func (pluginsState *PluginsState) ApplyLoggingPlugins(pluginsGlobals *PluginsGlo
return err
}
}
// Update monitoring metrics
updateMonitoringMetrics(pluginsState.proxy, pluginsState)
return nil
}
3 changes: 0 additions & 3 deletions dnscrypt-proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -818,9 +818,6 @@ func (proxy *Proxy) processIncomingQuery(
// Apply logging plugins
pluginsState.ApplyLoggingPlugins(&proxy.pluginsGlobals)

// Update monitoring metrics
updateMonitoringMetrics(proxy, &pluginsState)

return response
}

Expand Down