agsh / onvif

ONVIF node.js implementation
https://onvif.pages.dev
MIT License
703 stars 240 forks source link

problem with multiple XADDR #95

Closed fbertone closed 5 years ago

fbertone commented 6 years ago

I have a camera that responds to discovery giving a list of XADDRs separed by spaces

<d:XAddrs>http://192.168.1.100:80/onvif/device_service http://169.254.5.187:80/onvif/device_service http://[fe80::21b:feff:fe06:4f6a]:80/onvif/device_service</d:XAddrs>

The library sees that as a single endpoint

"path":"/onvif/device_service%20http://169.254.5.187:80/onvif/device_service%20http://[fe80::21b:feff:fe06:4f6a]:80/onvif/device_service"

As consequence all the Onvif requests gets sent to that path and obviously fail as the address is not recognized by the camera