diff --git a/README.md b/README.md index 86983b7..d62bda4 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ package main import "pndpd/pndp" pndp.SimpleRespond(iface string, filter []*net.IPNet) +pndp.ParseFilter(f string) []*net.IPNet pndp.Proxy(iface1, iface2 string) diff --git a/pndp/process.go b/pndp/process.go index eb7c612..15aee2b 100644 --- a/pndp/process.go +++ b/pndp/process.go @@ -56,13 +56,12 @@ func wgWaitTimout(wg *sync.WaitGroup, timeout time.Duration) bool { } } -// SimpleRespond +// SimpleRespond (Non blocking) // // iface - The interface to listen to and respond from // -// filter - Optional (can be nil) list of CIDRs to whitelist -// -// Non blocking +// filter - Optional (can be nil) list of CIDRs to whitelist. Must be IPV6! +// ParseFilter verifies ipv6 func SimpleRespond(iface string, filter []*net.IPNet) { go simpleRespond(iface, filter) }