Skip to content

Fix/linux version and ip reuse - #3

Merged
luc-github merged 6 commits into
2.0from
fix/linux-version-and-ip-reuse
Nov 23, 2026
Merged

luc-github merged 6 commits into
2.0from
fix/linux-version-and-ip-reuse

Conversation

@luc-github

Copy link
Copy Markdown
Owner

No description provided.

luc-github and others added 6 commits November 16, 2026 22:05
get_app_version() only looked in app/, which matches the PyInstaller layout
(Windows/macOS) but not sources/.deb/AppImage/tarball, where VERSION sits
next to app/. Try _MEIPASS, app/ and the project root in turn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remote icons were cached by IP alone (disk index and in-memory map), so a
host taking over an address inherited the previous occupant's icon (e.g. a
PC showing a Sonos icon). Icons are now looked up by the URL the device
currently announces; the per-IP index row is only trusted when it records
that URL.

NetBIOS/WSD rows replayed from cache had no offline path except ping, and a
ping answered by the IP's new occupant kept them online indefinitely (several
copies of the same PC), also merging them into that host's bundle via its
ARP MAC. Rows now pin the MAC seen when confirmed live (persisted in the
NMB/WSD caches); when a probe gets a reply from an IP whose MAC differs,
rows pinned to the old MAC are retired (followed ones kept greyed out).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Neighbour tables were cached 0.85 s without a lock while being read for
every device on every list rebuild and from several worker threads, so each
caller that saw an expired cache spawned its own arp -a. On Windows this
piled up hundreds of hidden arp.exe/conhost.exe and exhausted the desktop
heap.

- Refresh every neighbour table single-flight (one refresh at a time,
  concurrent callers reuse it), TTL 2 s, failures cached too.
- Windows: read the IPv4/IPv6 neighbour table with GetIpNetTable2 instead
  of arp.exe/netsh (kept only as fallback).
- Windows: ping IPv4 via IcmpSendEcho instead of ping.exe.
- Linux: no per-IP 'ip neigh show <ip>' spawn; use the shared cached table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…using custom command http->disable

Add several new rules for servers and phone and smart tv for automatic model triggering
@luc-github
luc-github merged commit fcc129c into 2.0 Nov 23, 2026
@luc-github
luc-github deleted the fix/linux-version-and-ip-reuse branch November 24, 2026 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant