mirror of
git://f0xx.org/ac/ac-be-remote-access
synced 2026-07-29 00:58:46 +03:00
Remote access UI: allow Open session when device opt-in is iodine.
Fix misleading RSSH-only hint for iodine-capable devices. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -519,14 +519,14 @@
|
||||
const briefId = 'ra-brief-' + rowKey;
|
||||
const wl = Number(d.whitelisted) === 1;
|
||||
const optIn = d.opt_in_mode || 'none';
|
||||
const openReady = wl && (optIn === 'wireguard' || optIn === 'rssh');
|
||||
const openReady = wl && (optIn === 'wireguard' || optIn === 'rssh' || optIn === 'iodine');
|
||||
const openHint = !canOperate()
|
||||
? 'Need remote_access_operate permission'
|
||||
: !wl
|
||||
? 'Whitelist device first'
|
||||
: openReady
|
||||
? 'Open session — device connects on next poll (≤7 min)'
|
||||
: 'Phone must poll with RSSH/WG enabled (dev settings on device; wait ≤7 min)';
|
||||
: 'Phone must poll with WireGuard/RSSH/Iodine enabled (dev settings on device; wait ≤7 min)';
|
||||
const openDisabled = canOperate() ? '' : ' disabled';
|
||||
const wlDisabled = canAdmin() ? '' : ' disabled';
|
||||
const isOpen = lastExpanded.has(String(d.device_id || ''));
|
||||
@@ -708,11 +708,11 @@
|
||||
setStatus('Whitelist device ' + openId + ' first', true);
|
||||
return;
|
||||
}
|
||||
if (optIn !== 'wireguard' && optIn !== 'rssh') {
|
||||
if (optIn !== 'wireguard' && optIn !== 'rssh' && optIn !== 'iodine') {
|
||||
setStatus(
|
||||
'Device opt-in is "' +
|
||||
optIn +
|
||||
'". On phone: dev settings → Remote access → RSSH, then wait for poll (≤7 min).',
|
||||
'". On phone: dev settings → Remote access → WireGuard, RSSH, or Iodine, then wait for poll (≤7 min).',
|
||||
true
|
||||
);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user