Skip to content

SFM 1.13.5 on MacOS does not work with configuration that worked on 1.13.3 #3993

@gr219

Description

@gr219

This is my sing-box configuration file. It works with SFM 1.13.3 (no error dialogue when clicking start button).

{
  "log": {
    "level": "info",
    "timestamp": true
  },
  "dns": {
    "servers": [
      {
        "type": "tcp",
        "tag": "google",
        "detour": "proxy",
        "server": "8.8.8.8",
        "server_port": 53
      },
      {
        "type": "local",
        "tag": "local"
      }
    ],
    "rules": [
      {
        "domain": "e1.std.io.vn",
        "server": "local"
      }
    ],
    "strategy": "ipv4_only"
  },
  "inbounds": [
    {
      "type": "tun",
      "tag": "tun-in",
      "interface_name": "singbox-tun",
      "mtu": 9000,
      "address": "172.19.0.1/30",
      "auto_route": true,
      "strict_route": true,
      "route_exclude_address": [
        "10.0.0.0/8",
        "172.16.0.0/12"
      ],
      "stack": "mixed"
    }
  ],
  "outbounds": [
    {
      "type": "vless",
      "tag": "proxy",
      "domain_resolver": "local",
      "server": "example.com",
      "server_port": 80,
      "uuid": "9e58f22f-9fa4-4653-a099-1a0a8a8f84dd",
      "transport": {
        "type": "ws",
        "path": "/",
        "headers": {
          "Host": "example.com"
        }
      },
      "packet_encoding": "xudp"
    },
    {
      "type": "direct",
      "tag": "direct",
      "bind_interface": "en0"
    },
    {
      "type": "direct",
      "tag": "freedom",
      "bind_interface": "en0"
    }
  ],
  "route": {
    "rules": [
      {
        "action": "sniff"
      },
      {
        "port": 53,
        "action": "hijack-dns"
      },
      {
        "ip_is_private": true,
        "outbound": "direct"
      }
    ],
    "final": "proxy",
    "auto_detect_interface": true,
    "default_domain_resolver": "local"
  },
  "experimental": {
    "cache_file": {
      "enabled": true
    }
  }
}

After updating SFM to version 1.13.5 using brew (which already included this commit Reject removed legacy inbound fields instead of silently ignoring), this configuration fails to start.
FATAL[0000] create service: initialize inbound[0]: legacy inbound fields are deprecated in sing-box 1.11.0 and removed in sing-box 1.13.0, checkout migration: https://sing-box.sagernet.org/migration/#migrate-legacy-inbound-fields-to-rule-actions
I guess something is wrong with SFM because I used singbox cli 1.13.5 to check the syntax of this file and it is valid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions