Русифицировать README и интерфейс HY2XS admin

This commit is contained in:
2026-04-25 23:51:21 +05:00
parent 84a4e94567
commit 2b4a45ad23
167 changed files with 632 additions and 699 deletions
+3 -2
View File
@@ -25,7 +25,7 @@ func UpdateConfig(key string, value string) error {
logrus.Errorf("hysteria2 config is empty")
return errors.New("hysteria2 config is empty")
}
// 启动Hysteria2
// Запуск Hysteria2
if err = StartHysteria2(); err != nil {
return err
}
@@ -73,7 +73,7 @@ func GetHysteria2Config() (bo.Hysteria2ServerConfig, error) {
}
func UpdateHysteria2Config(hysteria2ServerConfig bo.Hysteria2ServerConfig) error {
// 默认值
// Значения по умолчанию
config, err := dao.ListConfig("key in ?", []string{constant.HUIWebPort, constant.JwtSecret})
if err != nil {
return err
@@ -195,3 +195,4 @@ func GetAuthHttpUrl() (string, error) {
}
return fmt.Sprintf("%s://127.0.0.1:%d%s/hui/hysteria2/auth", protocol, port, webContext), nil
}