Add Tun.Name

This commit is contained in:
世界 2024-11-28 14:27:11 +08:00
parent 091b5da950
commit c21c623174
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
6 changed files with 261 additions and 237 deletions

View file

@ -148,6 +148,10 @@ func (t *NativeTun) configure() error {
return nil
}
func (t *NativeTun) Name() (string, error) {
return t.options.Name, nil
}
func (t *NativeTun) Start() error {
if !t.options.AutoRoute {
return nil