Skip to content

feat(android): keep hostname mDNS rows and only list main BigFred - #13

Merged
keskad merged 1 commit into
mainfrom
feat/discovery-component-dedup
Aug 22, 2026
Merged

feat(android): keep hostname mDNS rows and only list main BigFred#13
keskad merged 1 commit into
mainfrom
feat/discovery-component-dedup

Conversation

@keskad

@keskad keskad commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Why

The server picker showed both bigfred.local:8080 and 192.168.0.1:8080 for the same hub, plus bigfred-wizard and bigfred-os-ui as if they were loco-server.

What

  • Prefer a hostname row over an IPv4 literal when they resolve to the same address:port.
  • Keep only bigfred-component=main. Without TXT (older hubs), keep port 8080 and skip known non-main instance names.

Hub labels: dcc-bigfred/bigfred-os feat/mdns-component-labels.

Test plan

  • Unit tests in DiscoveryPolicyTest (hostname wins, distinct IPs kept, wizard/grafana rejected).
  • On device: one row for the hub (bigfred.local:8080); wizard / OS UI / Grafana stay off the picker.

Collapse bigfred.local and the matching IPv4 duplicate, and skip
wizard / OS UI / Grafana using TXT bigfred-component (with a name/port
fallback for older hubs).

Co-authored-by: Cursor <cursoragent@cursor.com>
@keskad
keskad merged commit f29ba2c into main Aug 22, 2026
1 check passed
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