github oldj/SwitchHosts v5.0.3-beta.3
SwitchHosts v5.0.3-beta.3

pre-release3 hours ago

2026-10-05 · Changes since v5.0.3-beta.2

New Features

  • Add batch domain resolution for remote hosts, with multiline input, per-domain results, concurrent lookups, and cached-IP fallback.
  • Add import previews for files and URLs, with selective append and full replacement options, folder structure preservation, reference remapping, and confirmation before replacement. (#295)
  • Add system hosts history controls: enable or disable recording, configure retention limits, view saved-record counts, and clear history with confirmation. (#1050)
  • Support configurable HTTP API listening ports without restarting, with service status and clear port-conflict errors. Update the Alfred workflow to support custom ports. (#767)
  • Support opening HTTP(S) links in hosts comments with Cmd-click on macOS or Ctrl-click on Windows/Linux.

Editor and Interface

  • Highlight managed hosts section boundaries and add labels that remain visible during horizontal scrolling.
  • Refine syntax highlighting with purple accents and softer line numbers; improve selected-text and read-only colors, and unify controls with the red theme.
  • Improve sidebar action placement and simplify the trash indicator.
  • Refine the tray popup layout and calculate its initial height from visible entries.
  • Vertically center the macOS window controls.

Bug Fixes and Reliability

  • Keep hosts toggle states consistent with applied content, including HTTP API operations, failed saves, and recovery.
  • Improve BOM, UTF-16, and legacy Windows ANSI handling. Back up original bytes before encoding conversion, restore exact bytes during rollback, preserve editor offsets, and reject invalid content before writing. (#302)
  • Restore Alt-drag column selection and correct comment toggling across multiple selections. (#1061)
  • Strengthen backup validation, preserve imported metadata, and allow retries after import failures or preview refreshes.
  • Fix history settings being rolled back during recovery failures, and improve history refresh and retry behavior.
  • Restore tray popup click handling on macOS 27.
  • Allow titlebar dragging while modal overlays are open.
  • Provide clearer errors for invalid remote URLs, TLS certificate failures, timeouts, and connection problems, while avoiding sensitive details in error messages. (#588)
  • Bound batch DNS refreshes with domain and time limits, protect refresh metadata from stale responses, and improve background failure reporting.

Localization

  • Add Spanish, Italian, Dutch, Portuguese, Vietnamese, Russian, and Thai.
  • Redesign the language selector with a themed, responsive multi-column menu.

Development and Maintenance

  • Upgrade frontend and Rust dependencies, update CI and release actions, and move CI/release builds to Node.js 24.
  • Add a VS Code launch configuration for Tauri development and expand regression coverage.
  • Update homepage links to switchhosts.app. (#1059)

2026-10-05 · 自 v5.0.3-beta.2 以来的修改

新增功能

  • 远程 hosts 支持批量域名解析,可按行输入多个域名,查看逐项解析结果,并支持并发查询和缓存 IP 回退。
  • 从文件或 URL 导入时支持预览,可选择部分配置追加导入,或替换全部配置;保留文件夹结构、重新映射引用关系,并在替换前要求确认。 (#295)
  • 新增系统 hosts 历史记录管理:支持开启或关闭记录、设置保留数量、查看已保存记录数,以及确认后清空历史记录。 (#1050)
  • HTTP API 支持自定义监听端口,保存后无需重启,并显示运行状态及明确的端口冲突提示;Alfred 工作流同步支持自定义端口。 (#767)
  • 支持打开 hosts 注释中的 HTTP(S) 链接:macOS 使用 Cmd + 单击,Windows/Linux 使用 Ctrl + 单击。

编辑器与界面

  • 高亮显示托管 hosts 内容的起止边界,并添加横向滚动时仍保持可见的标签。
  • 优化语法高亮,采用紫色强调色并降低行号的视觉干扰;改善选中文本和只读内容的配色,统一控件与红色主题的表现。
  • 调整侧边栏操作入口的位置,简化回收站提示标记。
  • 优化托盘弹窗布局,根据可见条目数量计算初始高度。
  • 修正 macOS 窗口控制按钮的垂直居中位置。

问题修复与可靠性

  • 修复 hosts 开关状态与实际生效内容不一致的问题,完善 HTTP API 切换、保存失败和恢复流程中的状态同步。
  • 改善 BOM、UTF-16 和 Windows 传统 ANSI 编码的处理;转换编码前备份原始字节,回滚时精确恢复,保留编辑器文本偏移,并在写入前拒绝无效内容。 (#302)
  • 恢复 Alt + 拖动列选择,修正多选区下的注释切换行为。 (#1061)
  • 加强备份文件校验,保留导入元数据,并支持在导入失败或刷新预览后重试。
  • 修复恢复失败时历史记录设置被回退的问题,完善历史记录刷新和重试机制。
  • 修复 macOS 27 上托盘弹窗无法响应点击的问题。
  • 修复弹出模态窗口后无法通过标题栏拖动主窗口的问题。
  • 为无效远程 URL、TLS 证书错误、请求超时和连接失败提供更明确的提示,并避免在错误信息中暴露敏感细节。 (#588)
  • 为批量 DNS 刷新增加域名数量和执行时间限制,防止过期响应覆盖刷新元数据,并完善后台刷新失败的记录。

多语言支持

  • 新增西班牙语、意大利语、荷兰语、葡萄牙语、越南语、俄语和泰语。
  • 重新设计语言选择菜单,支持主题适配和响应式多列布局。

开发与维护

  • 升级前端及 Rust 依赖,更新 CI 和发布工作流中的 Actions,并将 CI 与发布构建环境升级至 Node.js 24。
  • 新增用于 Tauri 开发的 VS Code 启动配置,并扩展回归测试覆盖。
  • 将项目主页链接更新为 switchhosts.app。 (#1059)

Full Changelog: v5.0.3-beta.2...v5.0.3-beta.3

Don't miss a new SwitchHosts release

NewReleases is sending notifications on new releases.