tun: support multiple IPs

This commit is contained in:
ginuerzh
2022-12-22 17:44:30 +08:00
parent 67bbdbf5a3
commit fb29d5c80e
9 changed files with 128 additions and 99 deletions

View File

@ -10,10 +10,10 @@ type Route struct {
type Config struct {
Name string
Net string
Net []net.IPNet
// peer addr of point-to-point on MacOS
Peer string
MTU int
Gateway string
Gateway net.IP
Routes []Route
}