mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-06-19 01:14:58 +03:00
Update TUN creation
This commit is contained in:
@@ -150,7 +150,7 @@ func (t *Tun) Start() error {
|
||||
if t.platformInterface != nil {
|
||||
tunInterface, err = t.platformInterface.OpenTun(t.tunOptions)
|
||||
} else {
|
||||
tunInterface, err = tun.Open(t.tunOptions)
|
||||
tunInterface, err = tun.New(t.tunOptions)
|
||||
}
|
||||
if err != nil {
|
||||
return E.Cause(err, "configure tun interface")
|
||||
|
||||
Reference in New Issue
Block a user