Commit 3690c8ec authored by Klaus-Uwe Mitterer's avatar Klaus-Uwe Mitterer

Add meaningful message for services that are not yet implemented.

parent b678777f
Pipeline #148 skipped
......@@ -53,7 +53,7 @@ class TCPHandler(socketserver.StreamRequestHandler):
elif command in ("heartbeat", "hb", "ping"):
return "OK: Still here? Wow."
elif command in ("stat", "status"):
return False
return "UA: Not currently implemented."
elif command in ("ssl", "tls"):
try:
if listIncluded(str(content[1]), SSL):
......@@ -69,11 +69,11 @@ class TCPHandler(socketserver.StreamRequestHandler):
except:
return "ER: Could not verify SSL certificate on %s:%i. Is the server down?" % (content[1], content[2])
elif command == "port":
return False
return "UA: Not currently implemented."
elif command in ("req", "request"):
return "NI: Requesting monitoring is not yet implemented."
elif command == "help":
return False
return "UA: Not currently implemented."
else:
return "IM: Unknown command %s." % command
# except TypeError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment