From 71c9d23d680db435d78065492baedd9a75dea7d0 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 26 May 2020 11:11:11 +0200 Subject: [PATCH] Switch to UUID util --- Gopkg.lock | 9 --------- profile/profile.go | 4 ++-- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index 54a3eda4..8d3bc962 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -68,14 +68,6 @@ revision = "37bf87eef99d69c4f1d3528bd66e3a87dc201472" version = "v5.0.3" -[[projects]] - digest = "1:fd608a9f543f30dd5a086b2cdd0bce71b65bca62798ff7ce21348806cdf1412d" - name = "github.com/gofrs/uuid" - packages = ["."] - pruneopts = "" - revision = "abfe1881e60ef34074c1b8d8c63b42565c356ed6" - version = "v3.3.0" - [[projects]] digest = "1:e85e59c4152d8576341daf54f40d96c404c264e04941a4a36b97a0f427eb9e5e" name = "github.com/google/gopacket" @@ -325,7 +317,6 @@ "github.com/cookieo9/resources-go", "github.com/coreos/go-iptables/iptables", "github.com/godbus/dbus", - "github.com/gofrs/uuid", "github.com/google/gopacket", "github.com/google/gopacket/layers", "github.com/google/gopacket/tcpassembly", diff --git a/profile/profile.go b/profile/profile.go index aa77e47d..f13c8b4c 100644 --- a/profile/profile.go +++ b/profile/profile.go @@ -6,12 +6,12 @@ import ( "sync" "time" - "github.com/gofrs/uuid" "github.com/tevino/abool" "github.com/safing/portbase/config" "github.com/safing/portbase/database/record" "github.com/safing/portbase/log" + "github.com/safing/portbase/utils" "github.com/safing/portmaster/intel/filterlists" "github.com/safing/portmaster/profile/endpoints" ) @@ -155,7 +155,7 @@ func (profile *Profile) parseConfig() error { // New returns a new Profile. func New() *Profile { profile := &Profile{ - ID: uuid.NewV4().String(), + ID: utils.RandomUUID("").String(), Source: SourceLocal, Created: time.Now().Unix(), Config: make(map[string]interface{}),