mirror of
https://git.vectorsigma.ru/public/headscale.git
synced 2026-08-05 06:18:35 +00:00
Add bypassDatabase() to consolidate the repeated LoadServerConfig + NewHeadscaleDatabase pattern in getPolicy and setPolicy. Replace os.Open + io.ReadAll with os.ReadFile in setPolicy and checkPolicy, removing the manual file-handle management.