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

feat: opt import config #71

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading