Update whitelist entry on connection

This commit is contained in:
maride 2017-09-28 11:54:10 +02:00
parent 259e6f49d7
commit 90adc72781

View File

@ -61,6 +61,7 @@ func gateway_handler(c net.Conn) {
if is_whitelisted(host) {
fmt.Println("[OK ] Whitelisted host ", host, " connected")
update_whitelist_time(host)
proxy(c)
} else {
fmt.Println("[BLK] Blocking host ", host)