diff --git a/package.json b/package.json index 3de70ea..d68d8e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "amnezia-admin", - "version": "1.2.16", + "version": "1.2.17", "private": true, "description": "amnezia_web — базовая панель AmneziaWG (FREE: просмотр и удаление клиентов; полная версия — PRO).", "license": "MIT", diff --git a/public/app.js b/public/app.js index c3fa592..a1ff828 100644 --- a/public/app.js +++ b/public/app.js @@ -366,6 +366,7 @@ async function refreshMtprotoPanel() { mtprotoBanner.textContent = ""; } try { + const s = await api("/api/mtproto/status"); if (mtprotoLogsTailEl) mtprotoLogsTailEl.textContent = typeof s.logsTail === "string" ? s.logsTail : ""; const parts = []; @@ -423,7 +424,6 @@ async function refreshMtprotoPanel() { const lines = []; if (typeof j.secretHex === "string") lines.push(`Секрет (сохраните): ${j.secretHex}`); if (typeof j.tgLink === "string" && j.tgLink) lines.push(`Ссылка: ${j.tgLink}`); - if (typeof j.advertiseHint === "string" && j.advertiseHint) lines.push(j.advertiseHint); if (mtprotoBanner) { mtprotoBanner.textContent = lines.join("\n"); mtprotoBanner.classList.remove("hidden"); @@ -481,6 +481,7 @@ async function refreshMtprotoPanel() { mtprotoActionsEl.appendChild(row); } catch (e) { + if (mtprotoLogsTailEl) mtprotoLogsTailEl.textContent = ""; const err = document.createElement("p"); err.className = "muted warp-muted err"; err.textContent = String(e.message || e); diff --git a/public/index.html b/public/index.html index 17618e5..e5593d0 100644 --- a/public/index.html +++ b/public/index.html @@ -220,16 +220,10 @@
amnezia_web - ⭐ GitHub - - 💖 Boosty · PRO - - 💳 Ozon СБП - - ✉️ Telegram @lot_andrey + GitHub

- Открытая базовая сборка — AWG клиентов, удаление с сервера, MTProto‑прокси Telegram (Docker). Остальной PRO доступ — см. Boosty и плашку в интерфейсе. + Базовая панель: AWG‑клиенты, статусы и MTProto‑прокси (Docker) без сторонней интеграции Telegram‑ботов.

diff --git a/server.js b/server.js index f04065d..b724f50 100644 --- a/server.js +++ b/server.js @@ -2259,7 +2259,6 @@ app.post("/api/mtproto/install", requireAuth, (req, res) => { hostPort, tgLink, advertisedHost: adv, - advertiseHint: adv ? "" : "Задайте MTPRO_PUBLIC_HOST — иначе в Telegram нужно самим ввести IP и порт из таблицы.", snapshot: snap, }); } finally {