Do not query the history database by default

This commit is contained in:
Patrick Pacher
2023-08-01 14:08:15 +02:00
parent 6719449770
commit 9f9838b8a1
3 changed files with 4 additions and 7 deletions

View File

@@ -2,8 +2,6 @@ package netquery
import (
"context"
"crypto/sha256"
"encoding/hex"
"encoding/json"
"fmt"
"time"
@@ -268,7 +266,5 @@ func convertConnection(conn *network.Connection) (*Conn, error) {
}
func genConnID(conn *network.Connection) string {
data := conn.ID + "-" + conn.Process().GetID()
hash := sha256.Sum256([]byte(data))
return hex.EncodeToString(hash[:])
return conn.ID + "-" + conn.Process().GetID()
}