ing
This commit is contained in:
parent
1aa43cf403
commit
bf6b3901c2
|
@ -3,6 +3,7 @@ package session
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log"
|
||||||
"net"
|
"net"
|
||||||
"strconv"
|
"strconv"
|
||||||
"sync"
|
"sync"
|
||||||
|
@ -176,6 +177,9 @@ func (ds *ofDiscoverySession) InitWithRequest(request types.DiscoveryRequest) er
|
||||||
_pCapScanner := pcap.NewPCapScanner(ds.zone)
|
_pCapScanner := pcap.NewPCapScanner(ds.zone)
|
||||||
if err := _pCapScanner.Start(); nil == err {
|
if err := _pCapScanner.Start(); nil == err {
|
||||||
ds.pCapScanner = _pCapScanner
|
ds.pCapScanner = _pCapScanner
|
||||||
|
log.Print("Privileged mode")
|
||||||
|
} else {
|
||||||
|
log.Print("Unprivileged mode")
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue
Block a user