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.84k stars 1.57k forks source link

无法生成新的面板根路径 #457

Closed trifolium-x closed 1 year ago

trifolium-x commented 1 year ago

Welcome

Description of the problem,screencshot would be good

您好,我在安装成功后,点击设置重新生根路径重启后新路径并没有生效,在命令行中查看basePath依然是/, 新的路径是404页面。

Version of x-ui

```console $ x-ui version # 输入 x-ui version 命令输出主菜单,并没有输出版本号码。 ```

x-ui log or xray log

```console Jul 20 05:15:53 ip-172-31-30-37 x-ui[16788]: 2023/07/20 05:15:53 WARNING - stop server err: multierr: context canceled | close tcp [::]:18081: use of closed network connection | Jul 20 05:15:53 ip-172-31-30-37 x-ui[16788]: 2023/07/20 05:15:53 INFO - web server run http on [::]:18081 Jul 20 05:15:53 ip-172-31-30-37 x-ui[16788]: 2023/07/20 05:15:53 INFO - Wait 2 seconds for telegram bot ready Jul 20 05:16:02 ip-172-31-30-37 x-ui[16788]: 2023/07/20 05:16:02 WARNING - 修改设置失败: read tcp 172.31.30.37:18081->45.33.35.95:62168: read: connection reset by peer ```
trifolium-x commented 1 year ago

45.33.35.95:62168 这个ip地址是我的外网ip地址,这个地址是代理出去的。

FranzKafkaYu commented 1 year ago

@trifolium-wang 请更换网络环境进行尝试,如开启代理的情况下请尝试先关闭代理。

trifolium-x commented 1 year ago

@FranzKafkaYu 感谢支持,已经解决了,一直不知道代理还会造成这个问题,但是为什么这个tcp(ws)连接为什么因为代理会无法连接这个我没能理解,是不是可以改成http轮询会好一些。

FranzKafkaYu commented 1 year ago

常规情况下连接代理登录面板进行操作不会有问题,具体问题取决于你个人的网络环境。