Asterisk4Magisk / Xray4Magisk

Xray core with service scripts for Android
387 stars 44 forks source link

无法切换到部分线路 #105

Closed Ai686Leo closed 1 month ago

Ai686Leo commented 1 month ago

当切换的线路有国旗/区旗时会切换失败

whalechoi commented 1 month ago

切换失败时error.log里面有啥?

Ai686Leo commented 1 month ago

切换失败时error.log里面有啥?

显示切换失败时没产生任何文件,

但是第一次启动时会出现(这里的第一次是指刚配置好文件并导入代理,直接选择了那个带有国旗/区旗的代理后启动)。我认为我的配置是没有问题的,因为在选择没有旗帜图案的代理后能成功运行

Xray 24.9.30 (Xray, Penetrates Everything.) 3b06af8 (go1.23.1 android/arm64)
A unified platform for anti-censorship.
2024/10/07 10:27:29 Using confdir from arg: /data/adb/xray/confs/
2024/10/07 10:27:29 [Info] infra/conf/serial: Reading config: &{Name:/data/adb/xray/confs/base.json Format:json}
2024/10/07 10:27:29 [Info] infra/conf/serial: Reading config: &{Name:/data/adb/xray/confs/policy.json Format:json}
2024/10/07 10:27:29 [Info] infra/conf/serial: Reading config: &{Name:/data/adb/xray/confs/proxy.json Format:json}
2024/10/07 10:27:29 [Info] infra/conf: [/data/adb/xray/confs/proxy.json] prepend outbound with tag: dns-out
2024/10/07 10:27:29 [Info] infra/conf: [/data/adb/xray/confs/proxy.json] prepend outbound with tag: direct
2024/10/07 10:27:29 [Info] infra/conf: [/data/adb/xray/confs/proxy.json] prepend outbound with tag: block
2024/10/07 10:27:29 [Info] infra/conf: [/data/adb/xray/confs/proxy.json] prepend outbound with tag: proxy
2024/10/07 10:27:29 [Info] infra/conf/serial: Reading config: &{Name:/data/adb/xray/confs/routing.json Format:json}
Failed to start: main: failed to load config files: [/data/adb/xray/confs/base.json /data/adb/xray/confs/policy.json /data/adb/xray/confs/proxy.json /data/adb/xray/confs/routing.json] > infra/conf: failed to parse to outbound detour config. > infra/conf: unknown config id: 

日志说它就是没有识别到,我感觉没有啥用但是我没翻到其他错误日志了

whalechoi commented 1 month ago

估计是生成的outbound有问题?检查下proxy.json

Ai686Leo commented 1 month ago

估计是生成的outbound有问题?检查下proxy.json

我还发现能使用的线路(无旗)几乎打不开网页,v2rayNG上都没问题,麻烦大佬帮我看看了

{
    "outbounds": [
        {
            "protocol": "dns",
            "tag": "dns-out"
        },
        {
            "protocol": "freedom",
            "settings": {
                "domainStrategy": "UseIP"
            },
            "tag": "direct"
        },
        {
            "protocol": "blackhole",
            "tag": "block"
        },
        {
            "mux": {
                "enabled": false
            },
            "protocol": "vmess",
            "settings": {
                "vnext": [
                    {
                        "address": "t.c******",
                        "port": ******,
                        "users": [
                            {
                                "id": "6a239df1******",
                                "alterId": 0,
                                "security": "",
                                "level": 0
                            }
                        ]
                    }
                ]
            },
            "streamSettings": {
                "network": "ws",
                "wsSettings": {
                    "headers": {
                        "Host": "21139d5a******"
                    },
                    "path": "/"
                },
                "security": "",
                "sockopt": {
                    "domainStrategy": "UseIP"
                }
            },
            "tag": "proxy"
        }
    ]
}
whalechoi commented 1 month ago

试试这个

Xray4Magisk-3.4.6-test4.zip

Ai686Leo commented 1 month ago

试试这个

Xray4Magisk-3.4.6-test4.zip

刚安装完的时候有概率能显示出来,不能的时候会显示图片里的,现在是正常显示,但无法切换任何线路 对了,我用的是APatch Screenshot_2024-10-12-14-51-06-59_26ccd656f4ada08d09da6514b90ed2c0.jpg

whalechoi commented 1 month ago

这个是管理器的BUG吧,ksu最新CI修了,可以暂时先用 5ec1cff的独立webui app

https://t.me/real5ec1cff/239

Ai686Leo commented 1 month ago

这个是管理器的BUG吧,ksu最新CI修了,可以暂时先用 5ec1cff的独立webui app

https://t.me/real5ec1cff/239

ok,谢谢!