This commit is contained in:
crusader 2018-09-05 05:37:15 +09:00
parent 1aa43cf403
commit bf6b3901c2

View File

@ -3,6 +3,7 @@ package session
import (
"encoding/json"
"fmt"
"log"
"net"
"strconv"
"sync"
@ -176,6 +177,9 @@ func (ds *ofDiscoverySession) InitWithRequest(request types.DiscoveryRequest) er
_pCapScanner := pcap.NewPCapScanner(ds.zone)
if err := _pCapScanner.Start(); nil == err {
ds.pCapScanner = _pCapScanner
log.Print("Privileged mode")
} else {
log.Print("Unprivileged mode")
}
return nil