LAN discovery: server advertises _pipelines._tcp over mDNS; app finds servers on the connect screen
Server: internal/discovery publishes a DNS-SD record (hashicorp/mdns) with the port LAN clients dial (the web proxy via -mdns-port, which the supervisor passes, or a non-loopback -addr) and TXT v, name, path, tls, auth. On by default; -mdns=false or PIPELINES_MDNS=off disables it. Failures are logged and never block startup; the advert is withdrawn on shutdown. App: the Connect to Pipelines screen gets 'Find servers on this network' behind a ServerDiscovery interface (Bonsoir: Android NSD with multicast lock, iOS Bonjour with NSLocalNetworkUsageDescription and NSBonjourServices). Tapping a server fills the address and connects; manual entry stays. Web has no scan.
This commit is contained in:
@@ -9,6 +9,7 @@ import '../core/servers/server_catalog.dart';
|
||||
import '../core/servers/server_catalog_store.dart';
|
||||
import '../core/servers/server_probe.dart';
|
||||
import '../core/transport/pipelines_client.dart';
|
||||
import '../features/onboarding/discovery/server_discovery.dart';
|
||||
import '../features/onboarding/onboarding_flow.dart';
|
||||
import '../features/settings/server_connections.dart';
|
||||
import '../features/settings/saved_servers_section.dart';
|
||||
@@ -288,6 +289,7 @@ class _PipelinesRootState extends State<PipelinesRoot> {
|
||||
saveServer: _saveOnboardingServer,
|
||||
onDone: _done,
|
||||
savedServers: SavedServersSection(connections: _servers),
|
||||
discovery: platformServerDiscovery(web: widget.web),
|
||||
serverAddresses:
|
||||
_servers.catalog.active?.endpoints.map(Uri.parse).toList() ??
|
||||
const [],
|
||||
|
||||
Reference in New Issue
Block a user