- 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
@@ -20,7 +20,6 @@ import * as ops from 'dawnline.ops';
|
||||
import * as geo from 'dawnline.geo';
|
||||
import * as watchdog from 'dawnline.watchdog';
|
||||
import * as net from 'dawnline.net';
|
||||
import * as bonjour from 'dawnline.bonjour';
|
||||
|
||||
const TICK = 60 * 1000;
|
||||
const FLUSH_EVERY = 3600;
|
||||
@@ -357,12 +356,6 @@ function tick() {
|
||||
check_wan(m);
|
||||
}
|
||||
catch (e) {}
|
||||
try {
|
||||
bonjour.sync(m);
|
||||
}
|
||||
catch (e) {
|
||||
slog('dawnline', 'error', `failed: ${e.message}`, null, 'Find home devices');
|
||||
}
|
||||
nightly_backup();
|
||||
try {
|
||||
check_geo(m);
|
||||
|
||||
@@ -28,7 +28,7 @@ const AWG_RU = 'luci-i18n-amneziawg-ru';
|
||||
// OpenWrt packages Dawnline runs on (the Updates tab groups and names them).
|
||||
// What Dawnline itself adds to OpenWrt (the rest of LuCI, ucode, rpcd and uhttpd is the
|
||||
// stock system): the home-like link, and HTTPS plus certificates for the personal portal.
|
||||
const SYS_PKGS = [ 'ip-full', 'kmod-veth', 'libustream-openssl', 'openssl-util', 'acme', 'acme-acmesh-dnsapi', 'luci-app-acme', 'umdns' ];
|
||||
const SYS_PKGS = [ 'ip-full', 'kmod-veth', 'libustream-openssl', 'openssl-util', 'acme', 'acme-acmesh-dnsapi', 'luci-app-acme' ];
|
||||
// Packages released together with each of the above, updated as a set so OpenSSL never ends up
|
||||
// half old and half new.
|
||||
const PKG_FAMILY = [
|
||||
@@ -463,9 +463,6 @@ function install_pkgs(arg) {
|
||||
// The portal's HTTPS runs in uhttpd. Restart after this job saved its state.
|
||||
let touched = [ ...names, ...have ];
|
||||
// A missing piece arrived: set up what waited for it (the portal, the home-like link).
|
||||
// Bonjour: OpenWrt's mDNS daemon starts at once; the agent publishes what it finds.
|
||||
if (index(missing, 'umdns') >= 0)
|
||||
run('/etc/init.d/umdns enable; /etc/init.d/umdns start');
|
||||
if (length(missing) && length(filter(missing, (n) => match(n, /^(openssl-util|libustream|ip-full|kmod-veth)/))))
|
||||
run('( sleep 3; /usr/bin/dawnline apply; /etc/init.d/uhttpd restart; /etc/init.d/dawnline restart ) </dev/null >/dev/null 2>&1 &');
|
||||
else if (length(filter(touched, (n) => match(n, /^(libustream|libopenssl)/))))
|
||||
|
||||
Reference in new issue
Block a user