Unverified Commit be18c76c authored by Odd Stråbø's avatar Odd Stråbø Committed by GitHub

Udp: default local_ip to IP_ANY_TYPE when IPv6 is enabled (#750)

parent af2671d8
......@@ -50,6 +50,11 @@ public:
, _tx_buf_cur(0)
, _tx_buf_offset(0) {
_pcb = udp_new();
#if LWIP_IPV6
// local_ip defaults to 0.0.0.0
// which is problematic for sending IPv6 packets
ip_addr_set_ipaddr(&_pcb->local_ip, IP_ANY_TYPE);
#endif
#ifdef LWIP_MAYBE_XCC
_mcast_ttl = 1;
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment