Русифицировать README и интерфейс HY2XS admin
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user