mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-02 11:27:39 +03:00
10 lines
227 B
Go
10 lines
227 B
Go
package tun
|
|
|
|
func defaultStack(options StackOptions) (Stack, error) {
|
|
if options.UnderPlatform {
|
|
// Apple Network Extension conflicts with system stack.
|
|
return NewGVisor(options)
|
|
} else {
|
|
return NewSystem(options)
|
|
}
|
|
}
|