mirror of
https://github.com/ngoduykhanh/wireguard-ui
synced 2024-05-29 12:02:19 +02:00
bee5c54127
Use MaxAge instead of Expires Verify if the cookie is not too old and not from the future Verify if the user exists and unchanged Refresh not sooner than 24h Do not refresh temporary sessions Delete cookies on logout
9 lines
199 B
Go
9 lines
199 B
Go
package util
|
|
|
|
import "sync"
|
|
|
|
var IPToSubnetRange = map[string]uint16{}
|
|
var TgUseridToClientID = map[int64][]string{}
|
|
var TgUseridToClientIDMutex sync.RWMutex
|
|
var DBUsersToCRC32 = map[string]uint32{}
|