This commit is contained in:
crusader 2018-10-23 14:07:35 +09:00
parent 00c0146fba
commit f34ed32de3

View File

@ -53,7 +53,13 @@ func (m *FTPMatcher) OsVersion(matchCtx *osm.MatchCtx) string {
}
func (m *FTPMatcher) Name(matchCtx *osm.MatchCtx) string {
return "FTP"
name := "FTP"
if v, ok := matchCtx.GetAttribute("comment"); ok {
if strings.Contains(v, "Pure-FTPd") {
name = "Pure-FTPd"
}
}
return name
}
func (m *FTPMatcher) IsPrePacket() bool {