Split set route to Start()

This commit is contained in:
世界 2024-11-06 17:09:04 +08:00
parent 9bcc1ec384
commit 24206c3edd
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
5 changed files with 114 additions and 47 deletions

1
tun.go
View file

@ -24,6 +24,7 @@ type Handler interface {
type Tun interface {
io.ReadWriter
N.VectorisedWriter
Start() error
Close() error
}