Add support for free-text search and minor bug fixes in netquery

This commit is contained in:
Patrick Pacher
2022-05-17 08:59:18 +02:00
parent bef911e925
commit 15f85b5ae9
6 changed files with 109 additions and 15 deletions

View File

@@ -149,7 +149,10 @@ type Connection struct { //nolint:maligned // TODO: fix alignment
DNSContext *resolver.DNSRequestContext
// TunnelContext holds additional information about the tunnel that this
// connection is using.
TunnelContext interface{}
TunnelContext interface {
GetExitNodeID() string
}
// Internal is set to true if the connection is attributed as an
// Portmaster internal connection. Internal may be set at different
// points and access to it must be guarded by the connection lock.