Error if websockets not available.

This commit is contained in:
Roger A. Light 2014-10-25 00:46:58 +01:00
parent 052c2d7766
commit 6524115f45

View File

@ -1478,7 +1478,8 @@ int _config_read_file_core(struct mqtt3_config *config, bool reload, const char
#ifdef WITH_WEBSOCKETS
cur_listener->protocol = mp_websockets;
#else
_mosquitto_log_printf(NULL, MOSQ_LOG_WARNING, "Warning: Websockets support not available.");
_mosquitto_log_printf(NULL, MOSQ_LOG_ERR, "Error: Websockets support not available.");
return MOSQ_ERR_INVAL;
#endif
}else{
_mosquitto_log_printf(NULL, MOSQ_LOG_ERR, "Error: Invalid protocol value (%s).", token);