middleware #1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
pre-request per-user dictionary of allowed IPs? vs sqlite round-trip? or at least, cached per user.
select from allowed_ips where user=x and ip=y
if allowing CIDR ranges...
ipAddress, ipNet, err := net.ParseCIDR("123.45.67.64/27") <- from settings
ipNet.Contains(net.ParseIP("123.45.67.69") <- from r.RemoteAddr (unless r.Header.Get("X-Forwarded-For"), in which case it either needs to be told the depth, or the list of trusted proxy addresses, or learn those, guess, and display to the user)