SimulPiscator/AirSane

AirSane listening interface issue

meiser79 opened this issue · 1 comments

Hi,

running airsaned on macOS 10.15, I'd like the daemon only to listen on the loopback interface lo0.

When the scanner is not yet connected and the daemon is started, the daemon listens on lo0. As soon as the scanner is connected, the daemon listens on all interfaces. On disconnect, the daemon then again only listens on lo0.

$ /usr/local/sbin/airsaned --interface=lo0 --base-port=8090 --options-file=/usr/local/etc/airsane/options.conf --ignore-list=/usr/local/etc/airsane/ignore.conf --debug=true
git commit: 538f5d6 (branch master, rev 154+)
build date: 2021-01-10T14:17:06Z
reading device options from '/usr/local/etc/airsane/options.conf'
enumerating local devices...
sane_init(nullptr, nullptr)
sane_get_devices() ...
... sane_get_devices() -> SANE_Status Success
sane_exit()
listening on 127.0.0.1:8090
listening on [::1]:8090
listening on [fe80::1]:8090
hotplug event, reloading configuration
received SIGHUP, reloading
reading device options from '/usr/local/etc/airsane/options.conf'
enumerating local devices...
sane_init(nullptr, nullptr)
sane_get_devices() ...
... sane_get_devices() -> SANE_Status Success
sane_exit()
found: genesys:libusb:020:016 (Canon LiDE 90)
sane_init(nullptr, nullptr)
sane_open(genesys:libusb:020:016) -> 0x7fadbfe0d9a0
[source] := "Flatbed"
sane_close(0x7fadbfe0d9a0)
sane_exit()
stable unique name: genesys:Canon LiDE 90:1
uuid: f623eb2c-baa8-543b-a71a-24b9a75abd1b
/usr/local/etc/airsane/options.conf: regex 'genesys:.*' matches device name 'genesys:libusb:020:016'
published as 'Canon LiDE 90'
listening on 127.0.0.1:8091
listening on 127.0.0.1:8090
listening on [::1]:8091
listening on [::1]:8090
listening on [fe80::1]:8091
listening on [fe80::1]:8090
listening on [fe80::c7a:c89a:f723:19f8]:8091
listening on 192.168.2.2:8091
listening on [IPv6 GUA]:8091
listening on [IPv6 GUA]:8091
listening on [fe80::2c3d:5cff:fe96:8199]:8091
listening on [fe80::2c3d:5cff:fe96:8199]:8091
listening on [fe80::300c:3fde:382a:cdfc]:8091
listening on [fe80::fe2c:73fd:f8cb:1dd5]:8091
listening on [fe80::5ab8:d839:b1e6:8165]:8091
listening on 192.168.217.1:8091
listening on 172.16.210.1:8091
listening on [fe80::aede:48ff:fe00:1122]:8091
hotplug event, reloading configuration
received SIGHUP, reloading
reading device options from '/usr/local/etc/airsane/options.conf'
enumerating local devices...
sane_init(nullptr, nullptr)
sane_get_devices() ...
... sane_get_devices() -> SANE_Status Success
sane_exit()
listening on 127.0.0.1:8090
listening on [::1]:8090
listening on [fe80::1]:8090

The issue is fixed, thank you for reporting it!