Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mosquitto-dev] TSL IPv4 only?

Hi,

I'm just having a poke around the code for setting up bridges to get a
feel for how hard it will be to implement a fix for
https://github.com/eclipse/mosquitto/issues/41

I've found line 284 to 291 in net_mosq.c

...
#ifdef WITH_TLS
	if(mosq->tls_cafile || mosq->tls_capath || mosq->tls_psk){
		hints.ai_family = PF_INET;
	}else
#endif
	{
		hints.ai_family = PF_UNSPEC;
	}
	hints.ai_flags = AI_ADDRCONFIG;
	hints.ai_socktype = SOCK_STREAM;
...

If I've read that right it will limit bridges to IPv4 if you're
connecting to a TLS enabled broker. Is that right?

Ben

-- 
http://www.hardill.me.uk/wordpress
http://about.me/hardillb
http://flickr.com/photos/hardillb/
http://last.fm/user/hardillb
https://keybase.io/hardillb


Back to the top