Commit graph

4 commits

Author SHA1 Message Date
Niko Marmeladkov
14bacec75a
fix: remove duplicate user_manager instance and reset traffic counters after report
Some checks failed
Build / Calculate version (push) Has been cancelled
Build / Build binary (push) Has been cancelled
Build / Build Darwin binaries (push) Has been cancelled
Build / Build Windows binaries (push) Has been cancelled
Build / Build Android (push) Has been cancelled
Build / Publish Android (push) Has been cancelled
Build / Build Apple clients (push) Has been cancelled
Build / Upload builds (push) Has been cancelled
- Remove second user_manager creation via serviceManager.Create to prevent
  double-counting (both instances tracked the same connections)
- Reset per-user atomic counters after each successful traffic report so
  the control panel receives independent per-interval deltas instead of
  unbounded cumulative values
2026-06-23 12:24:56 +03:00
Niko Marmeladkov
691cce1361
fix: register user_manager in context, immediate credential sync for all protocols, fix vless flow, add Authorization header
Some checks failed
Build / Calculate version (push) Has been cancelled
Build / Build binary (push) Has been cancelled
Build / Build Darwin binaries (push) Has been cancelled
Build / Build Windows binaries (push) Has been cancelled
Build / Build Android (push) Has been cancelled
Build / Publish Android (push) Has been cancelled
Build / Build Apple clients (push) Has been cancelled
Build / Upload builds (push) Has been cancelled
2026-06-18 22:16:18 +03:00
Niko Marmeladkov
4b9fabd1c8
fix: accept plain seconds for user_manager duration fields 2026-06-18 17:27:20 +03:00
Niko Marmeladkov
a3404e463f
feat: add universal user_manager service for external auth & traffic tracking
Some checks are pending
Build / Calculate version (push) Waiting to run
Build / Build binary (push) Blocked by required conditions
Build / Build Darwin binaries (push) Blocked by required conditions
Build / Build Windows binaries (push) Blocked by required conditions
Build / Build Android (push) Blocked by required conditions
Build / Publish Android (push) Blocked by required conditions
Build / Build Apple clients (push) Blocked by required conditions
Build / Upload builds (push) Blocked by required conditions
- New UserManager service with HTTPS auth, credential sync, traffic tracking, and kick API
- Integrates into all 10 protocol inbounds (hysteria2, tuic, vless, vmess, trojan,
  shadowsocks, http, socks, mixed, naive)
- Each inbound auto-detects user_manager from service context, falls back to static config
- Auth server contract: POST /api/auth, GET /api/credentials, POST /api/traffic
2026-06-18 15:49:49 +03:00