Add Tun.Name
This commit is contained in:
parent
091b5da950
commit
c21c623174
6 changed files with 261 additions and 237 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue