alexpevzner / sane-airscan

Scanner Access Now Easy - universal driver for eSCL (Apple AirScan) and WSD
Other
280 stars 39 forks source link

Non-literal host names returned for some auto-discovered WSD devices #317

Closed alexpevzner closed 8 months ago

alexpevzner commented 8 months ago

Some devices (for now, only Pantum MFPs know to have such a behaviour) when being automatically discovered using WS-Discovery in the WSD mode report their endpoint URLs using device names, not IP addresses. I.e., http://Pantum-1C6FA7:43001/43001, not http://192.168.0.47:43001/43001

It is not good for several reasons:

As for now, the preferred behaviour would be to resolve host names in these URLs during discovery. For now it looks most reasonable to use Avahi directly to resolve these names via MDNS. However some practical experience is required; may be in the future we will prefer to use standard libc resolver for this purpose or make things configurable

alexpevzner commented 8 months ago

The following commit has addressed this issue: https://github.com/alexpevzner/sane-airscan/commit/6cc94e9e3e1932d97690a45f5461ad64e057ebc3

alexpevzner commented 8 months ago

Fixed