From ac534b7d5da9857130e84bb9989f008c70e7b15d Mon Sep 17 00:00:00 2001 From: Anton Afanasyeu Date: Sun, 12 Jul 2026 19:44:33 +0200 Subject: [PATCH] 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 --- public/assets/js/remote_access.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/assets/js/remote_access.js b/public/assets/js/remote_access.js index b4aa098..2870964 100644 --- a/public/assets/js/remote_access.js +++ b/public/assets/js/remote_access.js @@ -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;