Closed CDuPlooy closed 5 years ago
In the code, specifically parsing.rs
on line 53 a check is made for urn:schemas-upnp-org:service:WANIPConnection:1
, the closest thing I have in my xml is urn:schemas-upnp-org:service:WANPPPConnection1
and changing it to that gets the example to run. I don't really have much experience with networking but all routers in South Africa use PPP as far as I know, perhaps I could open a pull request to check for either of the above and use the appropriate one?
Added some code to #40 that could possibly make the search_gateway() function a little more versatile, thanks @sbstp for merging! :+1:
I'm not sure if I'm just doing something stupid or if my router is completely and utterly broken but I get the above error when executing any of the example code.
It is worth noting that I tested this on a few friend's routers which also had upnp enabled but got the same error, I decreased the timeout on the SearchOptions just to be able to test a little quicker but it fails regardless.
EDIT:
I've managed to find out that the code is complaining about an invalid response in particular: