Dawnline 0.18.0
Build packages / CI (push) Blocked by required conditions
Build packages / Version (push) Waiting to run
CI / Web (format, types, tests, bundles) (push) Blocked by required conditions
CI / ShellCheck (push) Blocked by required conditions
CI / ucode static checks (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 24.10) (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 25.12) (push) Blocked by required conditions
Build packages / CI (push) Blocked by required conditions
Build packages / Version (push) Waiting to run
CI / Web (format, types, tests, bundles) (push) Blocked by required conditions
CI / ShellCheck (push) Blocked by required conditions
CI / ucode static checks (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 24.10) (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 25.12) (push) Blocked by required conditions
- Add V2RayTun to a device's set-up on Android: its awg:// link as a code and to copy, in the portal and in the admin (phones, tablets and other devices), with the server's IP, which its Android app needs; not with the Maximum disguise. Its Windows app is ready but stays off until it gives the tunnel the server's DNS. - Portal: show V2RayTun's Telegram channel beside Google Play. - Make WireGuard part of AmneziaWG's choice when the disguise is off: the same file and code, both apps named in the steps, WireGuard's store a tap away; a router still picks its package. - Portal: Reconnect asks again what the device is and about LAN Bypass, and LAN Bypass switches from a device's ⋯ menu, in a group of its own between the copy actions and Rename, Reconnect, Remove (the keys stay; the device takes its updated configuration). - Turn LAN Bypass on by default for new devices, in the portal and the admin. - Portal: an app's name too long for the picker fades at its edge and glides to its end on hover or tap; two store buttons stack where they do not fit side by side; the month chart's "Today" stays inside its axis. - Write to the router's system log by level (Settings → Logs & history → System log: errors, warnings, normal, verbose): the service starting and stopping, every apply with its time, network, firewall, nftables and peer changes, changed settings and portal errors, in English whatever the admin's language, with keys masked. - Activity: say what a device's change on the portal was (LAN Bypass on or off, its type). - Demo: build again after a force-pushed main instead of failing on the commit that is gone.
This commit is contained in:
1 parent
18e3013047
commit
f8130e39a8
65 files changed
+2066
-338
No files matched your search
@@ -62,6 +62,8 @@ export interface DemoDevice {
|
||||
created: number;
|
||||
by: 'admin' | 'portal';
|
||||
stale: boolean;
|
||||
/** LAN Bypass (unset: off). */
|
||||
bypass?: boolean;
|
||||
/** A set-up state the visitor picked in the sheet (way-pick.ts), held until they pick another; none: as it comes. */
|
||||
way?: DemoWay;
|
||||
/** When it was picked: the knocks' or the handshake's time. */
|
||||
@@ -168,7 +170,7 @@ function device(d: DemoDevice, t: number, st: Person['state']): Device {
|
||||
hostname: `${label(d.name)}.user.lan`,
|
||||
browser_key: false,
|
||||
config_stale: d.stale,
|
||||
lan_bypass: false,
|
||||
lan_bypass: !!d.bypass,
|
||||
mtu: 0,
|
||||
keepalive: null,
|
||||
// The server's for its kind, as the router works it out (the portal never shows it).
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// The demo's router: portal.uc's API (state, add a device, its settings,
|
||||
// rename / reconnect / remove) answered from the demo's own devices, which it
|
||||
// rename / reconnect / LAN Bypass / remove) answered from the demo's own devices, which it
|
||||
// keeps per visitor. The refusals are the router's (paused, ended, plain HTTP,
|
||||
// no free slot, a name taken). Nothing is installed and no tunnel exists: the
|
||||
// keys are random and the server's address never resolves. The page state
|
||||
@@ -158,6 +158,7 @@ export function createRouter(o: RouterOpts) {
|
||||
created: clock(),
|
||||
by: 'portal',
|
||||
stale: false,
|
||||
bypass: b.lan_bypass === true,
|
||||
};
|
||||
db.devs.push(d);
|
||||
issued = d.id;
|
||||
@@ -182,12 +183,24 @@ export function createRouter(o: RouterOpts) {
|
||||
if (b.action === 'rename') d.name = checkName(b.name, d);
|
||||
else if (b.action === 'reconnect') {
|
||||
needHttps();
|
||||
// What it is and LAN Bypass change with the keys, as on the router.
|
||||
if (typeof b.kind === 'string') {
|
||||
if (!KINDS.includes(b.kind as Kind)) refuse(400, 'Unknown device type.');
|
||||
d.kind = b.kind as Kind;
|
||||
}
|
||||
if (typeof b.lan_bypass === 'boolean') d.bypass = b.lan_bypass;
|
||||
// New keys: the old handshake no longer counts, the device connects again once set up.
|
||||
d.hs = 0;
|
||||
d.stale = false;
|
||||
d.connectAt = soon();
|
||||
issued = d.id;
|
||||
extra = { config: config(d) };
|
||||
} else if (b.action === 'bypass') {
|
||||
needHttps();
|
||||
if (typeof b.on !== 'boolean') refuse(400, 'Unknown action.');
|
||||
// The keys stay; the configuration it holds is out of date until it takes the updated one.
|
||||
d.bypass = b.on as boolean;
|
||||
d.stale = true;
|
||||
} else if (b.action === 'delete') db.devs = db.devs.filter((x) => x !== d);
|
||||
else refuse(400, 'Unknown action.');
|
||||
return { ok: true, ...extra, state: state() };
|
||||
|
||||
Reference in new issue
Block a user