From 1c90a4487c0eb2245a5247bd201047eb3407639a Mon Sep 17 00:00:00 2001 From: jbwdevries Date: Wed, 29 Jun 2016 18:12:20 +0200 Subject: [PATCH] Fixes a bug where the C++ wrapper would always claim SOCKS was not supported. (#198) The WITH_* flags are not handed over to the C++ wrapper, instead it relies on the actual library to check status. Signed-off-by: Johan de Vries (Ubuntu VM) --- lib/cpp/mosquittopp.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/cpp/mosquittopp.cpp b/lib/cpp/mosquittopp.cpp index 03301812..0a22b80f 100644 --- a/lib/cpp/mosquittopp.cpp +++ b/lib/cpp/mosquittopp.cpp @@ -281,11 +281,7 @@ void mosquittopp::user_data_set(void *userdata) int mosquittopp::socks5_set(const char *host, int port, const char *username, const char *password) { -#ifdef WITH_SOCKS return mosquitto_socks5_set(m_mosq, host, port, username, password); -#else - return MOSQ_ERR_NOT_SUPPORTED; -#endif }