This commit is contained in:
crusader 2018-10-18 12:33:52 +09:00
parent b1e1954a33
commit 58b2bb2fa3

View File

@ -12,10 +12,9 @@ import (
)
func Ping(service *omd.Service, pingOption ounp.Option) (ounp.Result, error) {
if isDiscoveredByMatcher(service) {
if isDiscoveredByMatcher(service) && omd.UnknownServiceKey != service.Key {
return processPing(service, pingOption, matcherPingFunc)
}
return processPing(service, pingOption, connectionPingFunc)
}