- Find home devices (Bonjour) removed: iOS looks for services over the tunnel only under a search domain, and Android and Chromecast only over multicast, which WireGuard does not carry. Upgrading removes its server option and dnsmasq records - Home services still show the ports devices announce when umdns runs
This commit is contained in:
1 parent
e657742b52
commit
70a932b8ea
16 files changed
+25
-229
No files matched your search
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "dawnline-web",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "dawnline-web",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"qrcode-generator": "1.4.4"
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dawnline-web",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
|
||||
@@ -95,7 +95,6 @@ export interface Needs {
|
||||
https: string[];
|
||||
acme: string[];
|
||||
home: string[];
|
||||
bonjour: string[];
|
||||
}
|
||||
|
||||
export interface SettingsData {
|
||||
@@ -189,8 +188,6 @@ export interface InterfacesData {
|
||||
mesh: MeshMode;
|
||||
};
|
||||
like_home: LikeHome;
|
||||
/** Find home devices: published from umdns as DNS-SD records. */
|
||||
bonjour: { on: boolean; needs: string[]; running: boolean; services: number };
|
||||
effective: {
|
||||
wan: { dev: string | null; zone: string; auto: boolean; missing: boolean };
|
||||
home: { dev: string; auto: boolean; nets: string[]; zone: string | null; missing: boolean }[];
|
||||
|
||||
@@ -374,7 +374,6 @@ export function accessCards(srv: Server, st: Status, reload: () => void): HTMLEl
|
||||
'',
|
||||
mesh === 'circles' ? circleChips(st, serverId, reload) : undefined,
|
||||
),
|
||||
bonjourRow(),
|
||||
services,
|
||||
]),
|
||||
E('div', { class: 'dl-setsec-foot' }, [
|
||||
@@ -397,34 +396,6 @@ export function accessCards(srv: Server, st: Status, reload: () => void): HTMLEl
|
||||
window.scrollTo({ top: y });
|
||||
}
|
||||
|
||||
/** Find home devices: AirPlay, printers and shared Macs listed on Apple devices over the tunnel. */
|
||||
function bonjourRow(): HTMLElement {
|
||||
const b = d.bonjour;
|
||||
const set = async (on: boolean) => {
|
||||
if (await attempt(() => api.serverUpdate(serverId, { bonjour: on }), on ? 'Finding home devices' : 'Home devices no longer listed'))
|
||||
load(false);
|
||||
};
|
||||
const state = b.needs.length
|
||||
? E('span', { class: 'dl-warn' }, ` Needs ${b.needs.join(', ')}.`)
|
||||
: b.on && !b.running
|
||||
? E('span', { class: 'dl-warn' }, ' umdns is not running.')
|
||||
: b.on
|
||||
? ` Listing ${b.services} service${b.services === 1 ? '' : 's'} from home now.`
|
||||
: '';
|
||||
return setrow(
|
||||
'wifi',
|
||||
['Find home devices ', E('span', { class: 'dl-faint dl-w400' }, '· Bonjour')],
|
||||
[
|
||||
'iPhone, iPad and Mac on the VPN see AirPlay, printers and shared Macs at home, as on Wi-Fi. Android and Chromecast look only on the local network.',
|
||||
state,
|
||||
],
|
||||
b.needs.length
|
||||
? button('Install', () => installMissing('bonjour', b.needs, () => load(false)), 'positive')
|
||||
: sw(b.on, 'Find home devices', (v) => set(v)),
|
||||
b.on && b.running ? 'ok' : '',
|
||||
);
|
||||
}
|
||||
|
||||
/** Interfaces that can be home networks as tiles; the rest folded, by kind. */
|
||||
function netPicker(): HTMLElement {
|
||||
const avail = d.devices.filter(pickable);
|
||||
|
||||
@@ -8,7 +8,6 @@ const WHAT: Record<keyof Needs, string> = {
|
||||
https: 'HTTPS for the portal',
|
||||
acme: 'ACME certificates',
|
||||
home: 'the home-like link',
|
||||
bonjour: 'Bonjour for home devices',
|
||||
};
|
||||
const WAIT_MS = 5 * 60 * 1000;
|
||||
|
||||
|
||||
Reference in new issue
Block a user