This commit is contained in:
crusader 2018-10-23 14:11:16 +09:00
parent f34ed32de3
commit 2d9981946a

View File

@ -37,7 +37,13 @@ func (m *FTPMatcher) Type(matchCtx *osm.MatchCtx) string {
return "NETWORK"
}
func (m *FTPMatcher) Vendor(matchCtx *osm.MatchCtx) string {
return "UNKNOWN"
v := "UNKNOWN"
if _v, ok := matchCtx.GetAttribute("comment"); ok {
if strings.Contains(_v, "Pure-FTPd") {
v = "Pure-FTPd"
}
}
return v
}
func (m *FTPMatcher) Version(matchCtx *osm.MatchCtx) string {