Skip to content

Commit

Permalink
feat: opt import config
Browse files Browse the repository at this point in the history
  • Loading branch information
zema1 committed Aug 28, 2024
1 parent 6ec49a6 commit 1e9c627
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# 更新记录

## [1.3.0] 2024.08.28

### 新增

- 增加实验性的 PHP 支持,使用之前请务必认真阅读文档
- 增加配置文件支持,支持导入导出配置文件来做配置复用
- 支持配置域名/IP的过滤规则,支持 Glob 通配符, 如 `*.example.com`
- 默认启用 `cookiejar`,如有问题请手动禁用
- 适当调整 GUI 版的界面布局,更加紧凑和聚焦

### 修复

- 修复 `weblogic` 等中间件内网转发失败问题
- 修复 Windows7 下客户端无法使用的问题
- 修复 `Suo5WebFlux` 拼写错误
- 去除部分无用的默认 Header

### 变更

- 测试失败时,将会直接认为连接不成功,而不是保持监听

## [1.2.0] 2024.04.30

### 修复

- 修复部分网站 `TLS` 连接失败的问题 #55
- 更新部分依赖至最新版

## [1.1.0] 2024.01.17

### 新增
Expand Down
3 changes: 3 additions & 0 deletions gui/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ func (a *App) ExportConfig(config *ctrl.Suo5Config) error {
if err != nil {
return err
}
if filepath == "" {
return fmt.Errorf("user canceled")
}
data, err := json.MarshalIndent(config, "", " ")
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion gui/frontend/src/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ const importConfig = async () => {
if (config) {
formValue.value = config
advancedOptions.value = Object.assign({}, config)
message.success("导入配置成功")
}
message.success("导入配置成功")
} catch (e) {
message.error(`导入配置失败, ${e}`)
}
Expand Down

0 comments on commit 1e9c627

Please sign in to comment.