FranzKafkaYu / x-ui

Lightweight Xray panel with multi-protocol and multi-user on the same port,supports English language and Telegram bot. Easy to use and easy to manage.
GNU General Public License v3.0
7.91k stars 1.58k forks source link

xray 1.80之后版本不兼容,报错 #538

Closed appotry closed 10 months ago

appotry commented 10 months ago

Welcome

Description of the problem,screencshot would be good

报错信息如下

Xray 1.8.4 (Xray, Penetrates Everything.) Custom (go1.21.0 linux/amd64)

A unified platform for anti-censorship.

2023/11/17 20:31:57 [Info] infra/conf/serial: Reading config: bin/config.json

Failed to start: main: failed to load config files: [bin/config.json] > infra/conf: VLESS clients: "flow" doesn't support "xtls-rprx-direct" in this version

错误原因,见这里 https://github.com/XTLS/Xray-core/issues/1764

除vision以外的流控,已在1.8中移除,要用direct降级服务端

修复方法,以及临时解决方法,这个issue里面也有

Version of x-ui

```console $ x-ui version # Paste output here ```

x-ui log or xray log

```console # paste log here ```
FranzKafkaYu commented 10 months ago

选择合适的Xray版本与对应的flow即可,这里你选择了Xray 1.8.4,flow就不要选择xtls-rprx-direct

appotry commented 10 months ago

@FranzKafkaYu "flow": "xtls-rprx-direct" 这个参数在x-ui里面没看到配置选项,原来的x-ui默认就是这个参数,和最新的xray不兼容

需要在ui里面加一个参数

FranzKafkaYu commented 10 months ago

@appotry 加什么参数?

appotry commented 10 months ago

@FranzKafkaYu 控制flow的菜单参数,现在的ui里面没有这个,默认直接就是xtls-rprx-direct,导致不兼容xray1.8之后的版本

FranzKafkaYu commented 10 months ago

@appotry image

appotry commented 10 months ago

@FranzKafkaYu 这个菜单显示逻辑是不是有问题,默认vless创建用户是看不到这个flow选项框的。 添加入站-> 添加用户

在协议框多次选择不同的协议(vmess vless等),然后点击添加用户,多次选择之后,才可能看到flow这个菜单

软件版本是这个仓库最新版,是从原来的xui升级过来的

appotry commented 10 months ago

找到配置的地方了。

现在的问题是没有使用xui的tls配置,使用的nginx反向代理的tls ,网络选择是ws

这种情况下默认就是xtls-rprx-direct,且面板没有提供修改的地方 @FranzKafkaYu 这种情况怎么处理