Skip to content

can not decode direct_io clash api #340

@malikshi

Description

@malikshi

Welcome

  • Yes, I'm using the latest major release. Only such installations are supported.
  • Yes, I'm using the latest Golang release. Only such installations are supported.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, FULL config, FULL log, etc).

Description of the problem

fatal decode direct_io on clash api.

Version of sing-box

Details
$ sing-box version
sing-box version 1.1.5

Environment: go1.20 linux/amd64
Tags: with_quic,with_grpc,with_wireguard,with_clash_api
CGO: disabled

Server and client configuration file

Details
{
  "log":{
    "disabled":false,
    "level":"panic",
    "output":"/var/log/box.log",
    "timestamp":true
  },
  "dns":{
    "servers":[
      {
        "tag":"cf",
        "address":"https://dns.cloudflare.com/dns-query",
        "address_resolver":"dnsproxy",
        "address_strategy":"ipv4_only",
        "strategy":"prefer_ipv4",
        "detour":"INTERNET"
      },
      {
        "tag":"dnsproxy",
        "address":"127.0.1.1",
        "address_strategy":"ipv4_only",
        "strategy":"ipv4_only",
        "detour":"direct"
      }
    ],
    "rules":[
      {
        "domain":[
          "www.gstatic.com",
          "detectportal.firefox.com"
        ],
        "server":"dnsproxy",
        "disable_cache":false
      }
    ],
    "final":"cf",
    "strategy":"",
    "disable_cache":false,
    "disable_expire":false
  },
  "experimental":{
    "clash_api":{
      "external_controller":"0.0.0.0:9090",
      "external_ui":"/etc/sing-box/yacd-gh-pages/",
      "secret":"abc123",
      "direct_io":true,
      "default_mode":"rule",
      "store_selected":true,
      "cache_file":"/etc/sing-box/clash.db"
    }
  },
  "inbounds":[
    
  ],
  "outbounds":[
    
  ],
  "route":{
    
  }
}

Server and client log file

Details
FATAL[0000] decode config: json: unknown field "direct_io"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions