A flow based on this article
Comments from Adam on the original version of this gist can be found here
A flow based on this article
Comments from Adam on the original version of this gist can be found here
#!/bin/vbash | |
# CONFIG | |
wan=dhcp | |
lan=192.168.1.1 | |
lan_segment=192.168.1.0 | |
vpn_segment=192.168.5.0 | |
domain=apertoire.org | |
lease_start=192.168.1.200 | |
lease_stop=192.168.1.245 |
package pool | |
type Task interface { | |
Execute(id int) | |
} | |
type Pool struct { | |
tasks chan Task | |
kill chan bool | |
} |