Documentation

This commit is contained in:
Kioubit 2021-12-22 07:14:51 -05:00
parent 57e9d65a31
commit 938e5e1a91
2 changed files with 4 additions and 4 deletions

View File

@ -20,6 +20,7 @@ package main
import "pndpd/pndp" import "pndpd/pndp"
pndp.SimpleRespond(iface string, filter []*net.IPNet) pndp.SimpleRespond(iface string, filter []*net.IPNet)
pndp.ParseFilter(f string) []*net.IPNet
pndp.Proxy(iface1, iface2 string) pndp.Proxy(iface1, iface2 string)

View File

@ -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 // iface - The interface to listen to and respond from
// //
// filter - Optional (can be nil) list of CIDRs to whitelist // filter - Optional (can be nil) list of CIDRs to whitelist. Must be IPV6!
// // ParseFilter verifies ipv6
// Non blocking
func SimpleRespond(iface string, filter []*net.IPNet) { func SimpleRespond(iface string, filter []*net.IPNet) {
go simpleRespond(iface, filter) go simpleRespond(iface, filter)
} }