Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 安装frp时填写的参数在被读取时错误地转换为数值型 #4949

Open
Chen-Rong-Zi opened this issue May 9, 2024 · 1 comment
Assignees

Comments

@Chen-Rong-Zi
Copy link

联系方式

231220088@nju.edu.cn

1Panel 版本

v1.10.2-lts

问题描述

24-05-10_02:13:02

密码一栏输入0011111后docker配置文件中密码错误地转换为了11111

重现步骤

在密码一栏中输入0开头的密码,密码在docker 配置文件中被错误解析为数值型数据,导致密码的0开头的数字在.env及后续frps.toml中被错误解析。

期待的正确结果

预期 .env文件

PASSWORD="0011111"

预期 frps.toml文件

webServer.password = "0011111"

相关日志输出

# 实际 .env文件
PASSWORD=11111

# 实际 frps.toml文件
webServer.password = "11111"

附加信息

经过尝试,该bug可以在mysql的root密码设置、halo密码设置中复现

@wanghe-fit2cloud
Copy link
Member

感谢反馈,上述现象是由于后端检验时数字类型转换导致的。

后续版本考虑优化一下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants