From 67449e453f60ef76e320543294e5e2b0d70851a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Mon, 20 Nov 2023 23:41:10 +0800 Subject: [PATCH] Fix platform API check --- box.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/box.go b/box.go index b8a0fad160..c10222ddf7 100644 --- a/box.go +++ b/box.go @@ -56,7 +56,7 @@ func New(options Options) (*Box, error) { applyDebugOptions(common.PtrValueOrDefault(experimentalOptions.Debug)) var needClashAPI bool var needV2RayAPI bool - if experimentalOptions.ClashAPI != nil || options.PlatformInterface != nil { + if experimentalOptions.ClashAPI != nil || options.PlatformLogWriter != nil { needClashAPI = true } if experimentalOptions.V2RayAPI != nil && experimentalOptions.V2RayAPI.Listen != "" {