Documentation
This commit is contained in:
parent
57e9d65a31
commit
938e5e1a91
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user