mirror of
https://github.com/safing/portmaster
synced 2025-09-02 10:39:22 +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
|
package profile
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
fingerprintWeights = map[string]int{
|
fingerprintWeights = map[string]int{
|
||||||
"full_path": 2,
|
"full_path": 2,
|
||||||
|
@ -35,6 +33,8 @@ func GetFingerprintWeight(fpType string) (weight int) {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: move to profile
|
||||||
|
/*
|
||||||
// AddFingerprint adds the given fingerprint to the profile.
|
// AddFingerprint adds the given fingerprint to the profile.
|
||||||
func (profile *Profile) AddFingerprint(fp *Fingerprint) {
|
func (profile *Profile) AddFingerprint(fp *Fingerprint) {
|
||||||
if fp.OS == "" {
|
if fp.OS == "" {
|
||||||
|
@ -46,3 +46,4 @@ func (profile *Profile) AddFingerprint(fp *Fingerprint) {
|
||||||
|
|
||||||
profile.Fingerprints = append(profile.Fingerprints, fp)
|
profile.Fingerprints = append(profile.Fingerprints, fp)
|
||||||
}
|
}
|
||||||
|
*/
|
Loading…
Add table
Reference in a new issue