Added secret check while replying to query/sending ping