x/internal/util/tun/config.go
2022-12-22 17:44:30 +08:00

20 lines
274 B
Go

package tun
import "net"
// Route is an IP routing entry
type Route struct {
Net net.IPNet
Gateway net.IP
}
type Config struct {
Name string
Net []net.IPNet
// peer addr of point-to-point on MacOS
Peer string
MTU int
Gateway net.IP
Routes []Route
}