Show unknown auth types in logs (#345)
Co-authored-by: Ullaakut <brendan.le-glaunec@epitech.eu>
This commit is contained in:
@@ -134,6 +134,8 @@ func (s *Scanner) DetectAuthMethods(targets []Stream) []Stream {
|
|||||||
authMethod = "basic"
|
authMethod = "basic"
|
||||||
case authDigest:
|
case authDigest:
|
||||||
authMethod = "digest"
|
authMethod = "digest"
|
||||||
|
default:
|
||||||
|
authMethod = "unknown:" + string(targets[i].AuthenticationType)
|
||||||
}
|
}
|
||||||
|
|
||||||
s.term.Debugf("Stream %s uses %s authentication method\n", GetCameraRTSPURL(targets[i]), authMethod)
|
s.term.Debugf("Stream %s uses %s authentication method\n", GetCameraRTSPURL(targets[i]), authMethod)
|
||||||
|
|||||||
Reference in New Issue
Block a user