Dawnline 0.5.2
- Fixed: a new server with the Maximum disguise could not be created ("jmin=10
(64-1024)"): the 3.1 preset's small junk packets failed Dawnline's own check
- Fixed: guesses from a shared address (every visitor behind Cloudflare) could
lock people with valid links out of the portal for 15 minutes; a valid link
always opens now, only wrong guesses are counted
- Fixed: a disabled Dawnline still loaded every device into the tunnels when
netifd brought them up, with nothing enforcing end dates or limits afterwards
- Fixed: an MTU of 1380 chosen by hand was deleted on every apply (the one-time
switch to automatic MTU now runs once)
- Locations (city lookups) are off by default on new installs: they send
people's addresses to a third party. Routers that had them on keep them on
- "Don't warn" before an end date is honoured, and the warning window is the
one chosen for the person on the Overview, People, the person page and the
portal alike (People and Overview used to warn 3 days before whatever was set)
- "Ends today" and "ends tomorrow" instead of "ends in 1 day"
- Renaming a person keeps the dialog open when the router refuses the name
- Settings → Portal no longer saves a listening port its own help line marks
as taken
- "Remove Dawnline" is live only once "remove" is typed
- Downloaded .conf files are named after the device first, and two devices
whose names only differ past the 15th character no longer get the same file
(and tunnel name in the app)
This commit is contained in:
1 parent
1a2f0b327e
commit
2b98abdba4
23 files changed
+197
-88
No files matched your search
@@ -11,6 +11,7 @@ import { portalPortHelp } from '../../netcheck';
|
||||
import { icon } from '../../../shared/icons';
|
||||
import { fmtDay } from '../../../shared/format';
|
||||
import { installMissing } from '../../pkgs';
|
||||
import { notify } from '../../ui/toast';
|
||||
import { section, type SettingsHost } from './common';
|
||||
|
||||
/** Summary of the portal checks: those that failed or warn, and the worst state. */
|
||||
@@ -380,8 +381,18 @@ export function portalCard(host: SettingsHost): HTMLElement {
|
||||
E('span'),
|
||||
button(
|
||||
'Save',
|
||||
() =>
|
||||
host.save(
|
||||
() => {
|
||||
// The port's help line already says what is wrong: do not send it anyway.
|
||||
const h = portalPortHelp(
|
||||
port.value.trim() === '' ? eff.portal_port : Number(port.value),
|
||||
host.d.tcp_taken ?? [],
|
||||
picked.some(isIp),
|
||||
);
|
||||
if (h.bad) {
|
||||
notify(`Listening port: ${h.text}`, 'warning');
|
||||
return;
|
||||
}
|
||||
return host.save(
|
||||
{
|
||||
portal_enabled: isOn(pOn) ? '1' : '0',
|
||||
portal_host: picked[0] ?? '',
|
||||
@@ -392,7 +403,8 @@ export function portalCard(host: SettingsHost): HTMLElement {
|
||||
},
|
||||
'Saved',
|
||||
'portal',
|
||||
),
|
||||
);
|
||||
},
|
||||
'positive',
|
||||
),
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user