Skip to content

Commit

Permalink
update by baohv
Browse files Browse the repository at this point in the history
  • Loading branch information
Phuocpr1998 committed Dec 13, 2019
1 parent 2f6461c commit 320f99c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"github.com/clbanning/mxj"
"github.com/golang/glog"
"github.com/satori/go.uuid"
"github.com/google/uuid"
"net"
"regexp"
"strings"
Expand Down Expand Up @@ -83,8 +83,7 @@ func StartDiscovery(interfaceName string, duration time.Duration) ([]Device, err

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

0 comments on commit 320f99c

Please sign in to comment.