SimulPiscator / AirSane

Publish SANE scanners to MacOS, Android, and Windows via Apple AirScan.
GNU General Public License v3.0
247 stars 26 forks source link

Add Hostname in Published Name? #34

Closed hftsai256 closed 4 years ago

hftsai256 commented 4 years ago

I would like to add @ $hostname after the shared Bonjour name (same behavior as CUPS/mDNS). For example: Screen Shot 2020-07-29 at 5 03 59 PM I looked around file zeroconf/mdnspublisher.cpp but not sure where to inject the additional string. This is not super important but a good-to-have feature. This additional hostname can also merge with CUPS when played right for multifunction printers. Thanks again.

SimulPiscator commented 4 years ago

You may change the service name here if you like: https://github.com/SimulPiscator/AirSane/blob/07c5b6bd9c46999c9b9d614d42c62d2cd03abbff/server/scanserver.cpp#L210 The hostname is available as this->hostname().