mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-06 05:17:39 +03:00
Refactor api
This commit is contained in:
parent
d378b6ca53
commit
b828f01643
15 changed files with 357 additions and 138 deletions
|
@ -3,10 +3,9 @@
|
|||
package tun
|
||||
|
||||
import (
|
||||
"net/netip"
|
||||
"os"
|
||||
)
|
||||
|
||||
func Open(name string, inet4Address netip.Prefix, inet6Address netip.Prefix, mtu uint32, autoRoute bool) (Tun, error) {
|
||||
func Open(config Options) (Tun, error) {
|
||||
return nil, os.ErrInvalid
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue