This commit is contained in:
crusader 2018-09-17 15:39:59 +09:00
parent efdfd3060b
commit 9567faa011

View File

@ -199,9 +199,9 @@ func (d *ofDiscoverer) discover(req types.DiscoveryRequest, s session.DiscoveryS
}
if s.Privileged() {
d.SendMessage(req, types.DiscoveryMessageTypeMode, "Privileged")
d.SendMessage(req, types.DiscoveryMessageTypeMode, omd.DiscoveryModeTypePrivileged.String())
} else {
d.SendMessage(req, types.DiscoveryMessageTypeMode, "Unprivileged")
d.SendMessage(req, types.DiscoveryMessageTypeMode, omd.DiscoveryModeTypeUnprivileged.String())
}
d.complexDiscover(s)