github wangwanjie/gately v0.6.8.1

one hour ago

中文

Web 服务

  • 添加或编辑站点失败:v0.6.8 在 Web 服务页添加、编辑、复制或启停站点以及编辑 HTTPS 监听时,提示 siteCerts 格式不对而保存失败。界面提交前现在会去掉这个只读字段;保存接口也会忽略列表接口自己输出的只读字段(运行状态、统计、证书匹配等),升级后仍开着的旧页面和「先读取再整体提交」的脚本同样能保存,其他未知字段照旧拒绝。
  • 复用连接时的「站点不存在」:多个域名解析到同一 IP 且证书都能覆盖(如通配证书)时,浏览器会把新域名的请求放进已打开的 HTTP/2 连接;前面有按 SNI 分流、把部分域名转给另一台 Gately 时,访问会显示「站点不存在」或落到那台的默认站点。现在 HTTP/2、HTTP/3 请求的域名与 TLS SNI 不一致且本监听没有该域名的站点时返回 421 Misdirected Request,浏览器会新建连接自动重试;HTTP/1.1 与不带 SNI 的请求照旧。

导航面板(#100、#101)

  • 链接尺寸:1×1、1×2、2×2(行 × 列);未设置尺寸的链接保持原样(卡片样式 1×2,图标样式 1×1);图标样式可关闭图标下的名称;Sun-Panel 2.x 导入保留 1x2 / 2x2 卡片。
  • 多地址链接直接打开:可设为单击打开当前网络下的默认地址,右键、菜单键或长按再显示地址选择(默认仍为单击显示选择)。
  • 获取链接图标:编辑链接时从局域网地址、主地址与其他访问方式读取网站图标(优先 SVG 与 128–256 px,回退 /favicon.ico)。
  • 页面开关:语言菜单、主题按钮、仅登录可见链接的锁形标记可单独开关;背景设置带实时预览。
  • 修复:图标样式 2×2 链接悬停时来回跳动;1×2 宽块悬停时底边闪动。

升级提示

  • 「复用连接」问题需要 SNI 分流两端的 Gately 都升级:请求落在哪台,哪台就要返回 421。
  • 导航面板访客页的语言菜单改为默认关闭,按浏览器语言显示,之前选过的语言 Cookie 不再生效;需要时在面板编辑的「页面设置」页签打开「语言切换」。

更新说明:https://gately.cn/news/v0.6.8.1

English

Web services

  • Adding or editing a site failed: in v0.6.8, adding, editing, copying or toggling a site and editing an HTTPS listener on the Web services page failed with a siteCerts format error. The UI now drops this read-only field before saving, and the save API ignores the read-only fields that the list API itself returns (running state, stats, certificate matches and so on), so pages still open from before the upgrade and scripts that read an item and send it back also work; other unknown fields are still rejected.
  • "Site not found" on reused connections: when several domains resolve to the same IP and one certificate covers them (a wildcard, for example), browsers send requests for a new domain over an HTTP/2 connection that is already open. If an SNI protocol router in front sends some of those domains to another Gately, the request lands there and shows "Site not found" or that instance's default site. HTTP/2 and HTTP/3 requests whose Host differs from the TLS SNI and has no site on the listener now get 421 Misdirected Request, and the browser retries on a new connection. HTTP/1.1 and requests without SNI are handled as before.

Navigation panels (#100, #101)

  • Link sizes: 1×1, 1×2 and 2×2 (rows × columns); links without a size look as before (1×2 in the card style, 1×1 in the icon style); names under icons can be hidden; Sun-Panel 2.x imports keep 1x2 / 2x2 cards.
  • Open multi-address links directly: a click can open the default address for the current network, with the address chooser on right-click, the context menu key or a long press (the default is still the chooser on click).
  • Fetch link icons: the link dialog reads the site's icon from the LAN address, the main address and other ways to open (SVG and 128–256 px preferred, /favicon.ico as fallback).
  • Page switches: the language menu, the theme button and the lock mark on sign-in-only links can each be turned off; the background settings show a live preview.
  • Fixes: 2×2 links in the icon style jumped back and forth on hover; 1×2 wide tiles flickered at their bottom edge on hover.

Upgrade notes

  • The reused-connection fix needs both Gately instances behind the SNI router upgraded: the instance that receives the misdirected request is the one that answers 421.
  • The language menu on navigation panel visitor pages is now off by default; pages follow the browser language and a language chosen earlier (cookie) no longer applies. Turn on "Language switch" in the panel editor's Page tab if you need it.

Release notes: https://gately.cn/en/news/v0.6.8.1

Don't miss a new gately release

NewReleases is sending notifications on new releases.