chg: activate tunnel service only in windows and linux

This commit is contained in:
Hiddify
2024-02-02 17:58:51 +01:00
parent 40f7ee63ff
commit e53c65fa18

View File

@@ -119,7 +119,8 @@ func BuildConfig(configOpt ConfigOptions, input option.Options) (*option.Options
} }
if configOpt.EnableTun { if configOpt.EnableTun {
if runtime.GOOS != "windows" && runtime.GOOS != "darwin" && runtime.GOOS != "linux" { if runtime.GOOS != "windows" && runtime.GOOS != "linux" {
// && runtime.GOOS != "darwin"
tunInbound := option.Inbound{ tunInbound := option.Inbound{
Type: C.TypeTun, Type: C.TypeTun,
Tag: "tun-in", Tag: "tun-in",