Switch to UUID util
This commit is contained in:
9
Gopkg.lock
generated
9
Gopkg.lock
generated
@@ -68,14 +68,6 @@
|
|||||||
revision = "37bf87eef99d69c4f1d3528bd66e3a87dc201472"
|
revision = "37bf87eef99d69c4f1d3528bd66e3a87dc201472"
|
||||||
version = "v5.0.3"
|
version = "v5.0.3"
|
||||||
|
|
||||||
[[projects]]
|
|
||||||
digest = "1:fd608a9f543f30dd5a086b2cdd0bce71b65bca62798ff7ce21348806cdf1412d"
|
|
||||||
name = "github.com/gofrs/uuid"
|
|
||||||
packages = ["."]
|
|
||||||
pruneopts = ""
|
|
||||||
revision = "abfe1881e60ef34074c1b8d8c63b42565c356ed6"
|
|
||||||
version = "v3.3.0"
|
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
digest = "1:e85e59c4152d8576341daf54f40d96c404c264e04941a4a36b97a0f427eb9e5e"
|
digest = "1:e85e59c4152d8576341daf54f40d96c404c264e04941a4a36b97a0f427eb9e5e"
|
||||||
name = "github.com/google/gopacket"
|
name = "github.com/google/gopacket"
|
||||||
@@ -325,7 +317,6 @@
|
|||||||
"github.com/cookieo9/resources-go",
|
"github.com/cookieo9/resources-go",
|
||||||
"github.com/coreos/go-iptables/iptables",
|
"github.com/coreos/go-iptables/iptables",
|
||||||
"github.com/godbus/dbus",
|
"github.com/godbus/dbus",
|
||||||
"github.com/gofrs/uuid",
|
|
||||||
"github.com/google/gopacket",
|
"github.com/google/gopacket",
|
||||||
"github.com/google/gopacket/layers",
|
"github.com/google/gopacket/layers",
|
||||||
"github.com/google/gopacket/tcpassembly",
|
"github.com/google/gopacket/tcpassembly",
|
||||||
|
|||||||
@@ -6,12 +6,12 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gofrs/uuid"
|
|
||||||
"github.com/tevino/abool"
|
"github.com/tevino/abool"
|
||||||
|
|
||||||
"github.com/safing/portbase/config"
|
"github.com/safing/portbase/config"
|
||||||
"github.com/safing/portbase/database/record"
|
"github.com/safing/portbase/database/record"
|
||||||
"github.com/safing/portbase/log"
|
"github.com/safing/portbase/log"
|
||||||
|
"github.com/safing/portbase/utils"
|
||||||
"github.com/safing/portmaster/intel/filterlists"
|
"github.com/safing/portmaster/intel/filterlists"
|
||||||
"github.com/safing/portmaster/profile/endpoints"
|
"github.com/safing/portmaster/profile/endpoints"
|
||||||
)
|
)
|
||||||
@@ -155,7 +155,7 @@ func (profile *Profile) parseConfig() error {
|
|||||||
// New returns a new Profile.
|
// New returns a new Profile.
|
||||||
func New() *Profile {
|
func New() *Profile {
|
||||||
profile := &Profile{
|
profile := &Profile{
|
||||||
ID: uuid.NewV4().String(),
|
ID: utils.RandomUUID("").String(),
|
||||||
Source: SourceLocal,
|
Source: SourceLocal,
|
||||||
Created: time.Now().Unix(),
|
Created: time.Now().Unix(),
|
||||||
Config: make(map[string]interface{}),
|
Config: make(map[string]interface{}),
|
||||||
|
|||||||
Reference in New Issue
Block a user