mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Move profile fingerprints to separate package
This commit is contained in:
parent
d4d7938f0e
commit
5a2e0b84ff
7 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,5 @@
|
|||
package profile
|
||||
|
||||
import "time"
|
||||
|
||||
var (
|
||||
fingerprintWeights = map[string]int{
|
||||
"full_path": 2,
|
||||
|
@ -35,6 +33,8 @@ func GetFingerprintWeight(fpType string) (weight int) {
|
|||
return 0
|
||||
}
|
||||
|
||||
// TODO: move to profile
|
||||
/*
|
||||
// AddFingerprint adds the given fingerprint to the profile.
|
||||
func (profile *Profile) AddFingerprint(fp *Fingerprint) {
|
||||
if fp.OS == "" {
|
||||
|
@ -46,3 +46,4 @@ func (profile *Profile) AddFingerprint(fp *Fingerprint) {
|
|||
|
||||
profile.Fingerprints = append(profile.Fingerprints, fp)
|
||||
}
|
||||
*/
|
Loading…
Add table
Reference in a new issue