Doc: small fix in documentation
[contrib/qtwebsockets.git] / examples / sslechoclient / sslechoclient.cpp
index cf5b976..037990d 100644 (file)
@@ -78,6 +78,11 @@ void SslEchoClient::onTextMessageReceived(QString message)
 void SslEchoClient::onSslErrors(const QList<QSslError> &errors)
 {
     Q_UNUSED(errors);
+
+    // WARNING: Never ignore SSL errors in production code.
+    // The proper way to handle self-signed certificates is to add a custom root
+    // to the CA store.
+
     m_webSocket.ignoreSslErrors();
 }
 //! [onTextMessageReceived]