Skip to content

Commit 320f99c

Browse files
committed
update by baohv
1 parent 2f6461c commit 320f99c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

discovery.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"errors"
55
"github.com/clbanning/mxj"
66
"github.com/golang/glog"
7-
"github.com/satori/go.uuid"
7+
"github.com/google/uuid"
88
"net"
99
"regexp"
1010
"strings"
@@ -83,8 +83,7 @@ func StartDiscovery(interfaceName string, duration time.Duration) ([]Device, err
8383

8484
func discoverDevices(ipAddr string, duration time.Duration) ([]Device, error) {
8585
// Create WS-Discovery request
86-
u, _ := uuid.NewV4()
87-
requestID := "uuid:" + u.String()
86+
requestID := "uuid:" + uuid.New().String()
8887
//request := `
8988
// <?xml version="1.0" encoding="UTF-8"?>
9089
// <e:Envelope

0 commit comments

Comments
 (0)