mirror of
https://github.com/andrey271192/amnezia_web-PRO.git
synced 2026-09-21 14:51:59 +00:00
The instances section listed only panel-managed instances, so an AmneziaWG container set up by the Amnezia desktop app (e.g. amnezia-awg2) did not appear as a card. /api/instances now iterates ALL effective profiles (env-discovered + managed): resolves each container, reads ListenPort and peer count, and detects the variant from the interface config (S3/S4 -> awg2, S1/S2 -> awg, wg0 -> legacy). Native (non-managed) instances are flagged managed:false. UI: native cards get an "приложение Amnezia" tag and hide the Удалить button (the panel must not tear down app-managed containers); they keep Подключения and Стоп/Старт. Stop/start now resolve the real container name so they work for native instances too. Verified live: native amnezia-awg2 shows as "AmneziaWG 2.0" port 37395 (managed:false) alongside a panel-created Legacy :5534.