[READ-ONLY] Mirror of https://github.com/andrioid/ublproxy. andrioid.github.io/ublproxy
adblock adblock-plus-list adblocker privacy-tools proxy-server self-hosted

Lazily restore sessionMap from SQLite on authenticated API calls master

The in-memory sessionMap (IP -> credential) was lost on server restart, causing user=anon for all proxied requests until the user logged in again. Now authenticate() populates the sessionMap when it validates a Bearer token, so the proxy knows the user as soon as the portal page is loaded.


+16
2 changed files