Merge pull request #771 from safing/remove-spn-used
Removed duplicated field SPNUsed from netquery module
This commit is contained in:
@@ -95,8 +95,7 @@ type (
|
|||||||
ExitNode *string `sqlite:"exit_node"`
|
ExitNode *string `sqlite:"exit_node"`
|
||||||
|
|
||||||
// TODO(ppacher): support "NOT" in search query to get rid of the following helper fields
|
// TODO(ppacher): support "NOT" in search query to get rid of the following helper fields
|
||||||
SPNUsed bool `sqlite:"spn_used"` // could use "exit_node IS NOT NULL" or "exit IS NULL"
|
Active bool `sqlite:"active"` // could use "ended IS NOT NULL" or "ended IS NULL"
|
||||||
Active bool `sqlite:"active"` // could use "ended IS NOT NULL" or "ended IS NULL"
|
|
||||||
|
|
||||||
// TODO(ppacher): we need to profile here for "suggestion" support. It would be better to keep a table of profiles in sqlite and use joins here
|
// TODO(ppacher): we need to profile here for "suggestion" support. It would be better to keep a table of profiles in sqlite and use joins here
|
||||||
ProfileName string `sqlite:"profile_name"`
|
ProfileName string `sqlite:"profile_name"`
|
||||||
|
|||||||
@@ -204,7 +204,6 @@ func convertConnection(conn *network.Connection) (*Conn, error) {
|
|||||||
extraData["tunnel"] = conn.TunnelContext
|
extraData["tunnel"] = conn.TunnelContext
|
||||||
exitNode := conn.TunnelContext.GetExitNodeID()
|
exitNode := conn.TunnelContext.GetExitNodeID()
|
||||||
c.ExitNode = &exitNode
|
c.ExitNode = &exitNode
|
||||||
c.SPNUsed = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if conn.DNSContext != nil {
|
if conn.DNSContext != nil {
|
||||||
|
|||||||
@@ -134,7 +134,8 @@ type Connection struct { //nolint:maligned // TODO: fix alignment
|
|||||||
// be changed during the lifetime of a connection and must be guarded
|
// be changed during the lifetime of a connection and must be guarded
|
||||||
// using the connection lock.
|
// using the connection lock.
|
||||||
Inspecting bool
|
Inspecting bool
|
||||||
// Tunneled is currently unused and MUST be ignored.
|
// Tunneled is set to true when the connection has been routed through the
|
||||||
|
// SPN.
|
||||||
Tunneled bool
|
Tunneled bool
|
||||||
// Encrypted is currently unused and MUST be ignored.
|
// Encrypted is currently unused and MUST be ignored.
|
||||||
Encrypted bool
|
Encrypted bool
|
||||||
|
|||||||
Reference in New Issue
Block a user