sbstp / rust-igd

Internet Gateway Device (UPNP) client
https://docs.rs/igd/
MIT License
105 stars 43 forks source link

Handle invalid SSDP responses from a Unifi controller #35

Closed dparnell closed 5 years ago

dparnell commented 5 years ago

On my network I have a Ubiquiti Unifi controller that for some reason responds to the SSDP packet as well as the actual network gateway. The response from the Unifi controller is invalid and causes the rust-igd code to fail. This small patch handles this case more gracefully.

sbstp commented 5 years ago

Looks like a good patch. It would be neat to fix this bug for the async version as well. I'll see what I can do.

sbstp commented 5 years ago

Alright it's been published as 0.7.1