YtFlow / Maple

A lightweight Universal Windows proxy app based on https://github.com/eycorsican/leaf
Apache License 2.0
1.23k stars 121 forks source link

Maple crashes when I connect from Maple GUI #37

Closed Ali-Flt closed 1 year ago

Ali-Flt commented 1 year ago

When I use the top bar toggle switch to connect maple disappears instantly, is this normal? I also can't connect to my V2ray server using Maple and was wondering this crash on connect could be a hint. here is my v2ray json config:


{
  "log": {
    "level": "warning"
  },
  "dns": {
    "servers": [
      "1.1.1.1",
      "8.8.8.8"
    ],
    "hosts": {
      "example.com": [
        "192.168.0.1",
        "192.168.0.2"
      ],
      "server.com": [
        "192.168.0.3"
      ]
    }
  },
  "inbounds": [
    {
      "address": "127.0.0.1",
      "port": 1087,
      "protocol": "http"
    },
    {
      "address": "127.0.0.1",
      "port": 1086,
      "protocol": "socks"
    },
    {
      "protocol": "tun",
      "settings": {
        "name": "utun8",
        "address": "10.10.0.2",
        "netmask": "255.255.255.0",
        "gateway": "10.10.0.1",
        "mtu": 1500,
        "fakeDnsInclude": [
          "google"
        ]
      },
      "tag": "tun_in"
    }
  ],
  "outbounds": [
    {
      "protocol": "failover",
      "settings": {
        "actors": [
          "vmess_out",
          "trojan_out"
        ]
      },
      "tag": "failover_out"
    },
    {
      "protocol": "chain",
      "settings": {
        "actors": [
          "vmess_tls",
          "vmess_ws",
          "vmess"
        ]
      },
      "tag": "vmess_out"
    },
    {
      "protocol": "tls",
      "tag": "vmess_tls"
    },
    {
      "protocol": "ws",
      "settings": {
        "path": "/websocket/"
      },
      "tag": "vmess_ws"
    },
    {
      "protocol": "vmess",
      "settings": {
        "address": "myserver",
        "port": 8080,
        "uuid": "myuuid"
      },
      "tag": "vmess"
    },
    {
      "protocol": "chain",
      "settings": {
        "actors": [
          "trojan_tls",
          "trojan"
        ]
      },
      "tag": "trojan_out"
    },
    {
      "protocol": "tls",
      "tag": "trojan_tls"
    },
    {
      "protocol": "direct",
      "tag": "direct_out"
    },
    {
      "protocol": "drop",
      "tag": "drop_out"
    }
  ],
  "rules": [
    {
      "ip": [
        "8.8.8.8",
        "8.8.4.4"
      ],
      "target": "failover_out"
    },
    {
      "domain": [
        "www.google.com"
      ],
      "target": "failover_out"
    },
    {
      "domainSuffix": [
        "google.com"
      ],
      "target": "failover_out"
    },
    {
      "domainKeyword": [
        "google"
      ],
      "target": "failover_out"
    },
    {
      "external": [
        "site:cn"
      ],
      "target": "direct_out"
    },
    {
      "external": [
        "mmdb:cn"
      ],
      "target": "direct_out"
    }
  ]
}
bdbai commented 1 year ago

Hi @Ali-Flt , you can try connecting VPN from System Settings if the in-app toggle does not work.

You are recommended to use the conf format configuration as it is more human-readable, plus the renovated editor in Maple v0.7.0 is able to detect more errors in your conf files.

Ali-Flt commented 1 year ago

I also tried the windows VPN settings multiple times but no luck

bdbai commented 1 year ago

I assume the configuration is used in #35. As there is no error when connecting the VPN itself, I am going to close this issue and continue tracking VMess AEAD matters in #35.