Skip to content

Commit

Permalink
Fix platform API check
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Nov 20, 2023
1 parent ac5f375 commit 67449e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion box.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "" {
Expand Down

0 comments on commit 67449e4

Please sign in to comment.