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) <devries@wivion.nl>
pull/206/head
jbwdevries 9 years ago committed by Roger Light
parent eaef3db142
commit 1c90a4487c

@ -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
}

Loading…
Cancel
Save