update tap

This commit is contained in:
ginuerzh committed 2022-11-04 18:48:28 +08:00
1 parent 30d44c7376
commit 05ddda70e3
9 files changed
+181 -92

No files matched your search

+8 -1
View File
@@ -1,9 +1,16 @@
package tap
import "net"
// Route is an IP routing entry
type Route struct {
Net net.IPNet
Gateway net.IP
}
type Config struct {
Name string
Net string
MTU int
Routes []string
Gateway string
Routes []Route
}