This commit is contained in:
2024-11-18 16:28:45 +02:00
parent f0452ff9f7
commit 825c7e3391
34 changed files with 624 additions and 426 deletions

View File

@@ -4,11 +4,11 @@ import (
"gemini-grc/logging"
)
var IpPool IpAddressPool = IpAddressPool{IPs: make(map[string]int)}
var IpPool = IpAddressPool{IPs: make(map[string]int)}
func AddIPsToPool(IPs []string) {
func AddIPsToPool(ips []string) {
IpPool.Lock.Lock()
for _, ip := range IPs {
for _, ip := range ips {
logging.LogDebug("Adding %s to pool", ip)
IpPool.IPs[ip]++
}