Update whitelist entry on connection
This commit is contained in:
parent
259e6f49d7
commit
90adc72781
@ -61,6 +61,7 @@ func gateway_handler(c net.Conn) {
|
|||||||
|
|
||||||
if is_whitelisted(host) {
|
if is_whitelisted(host) {
|
||||||
fmt.Println("[OK ] Whitelisted host ", host, " connected")
|
fmt.Println("[OK ] Whitelisted host ", host, " connected")
|
||||||
|
update_whitelist_time(host)
|
||||||
proxy(c)
|
proxy(c)
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("[BLK] Blocking host ", host)
|
fmt.Println("[BLK] Blocking host ", host)
|
||||||
|
Loading…
Reference in New Issue
Block a user