fix(network): stable phone hotspot IP via dhcp-client-id=yaris-obd
- Phone DHCP caches by client-id so Pi always gets same lease - Remove dashboard phone-hotspot banner (didn't work) Co-authored-by: Copilot <[email protected]>
This commit is contained in:
@@ -326,24 +326,3 @@ window.setInterval(function () {
|
||||
message.hidden = false;
|
||||
});
|
||||
}, 30000);
|
||||
|
||||
// ── Phone hotspot banner ───────────────────────────────────────────────────
|
||||
(function () {
|
||||
const banner = document.getElementById('phone-hotspot-banner');
|
||||
const ipEl = document.getElementById('phone-hotspot-ip');
|
||||
function checkUplink() {
|
||||
fetch('/api/uplink/status')
|
||||
.then(r => r.ok ? r.json() : null)
|
||||
.then(s => {
|
||||
if (s && s.mode === 'phone' && s.ip_address) {
|
||||
ipEl.textContent = `http://${s.ip_address}/`;
|
||||
banner.hidden = false;
|
||||
} else {
|
||||
banner.hidden = true;
|
||||
}
|
||||
})
|
||||
.catch(() => { banner.hidden = true; });
|
||||
}
|
||||
checkUplink();
|
||||
window.setInterval(checkUplink, 15000);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user