检测服务器接受的 TLS 协议版本

GET/tls-versions

分别发送只允许 TLS 1.3、1.2、1.1 或 1.0 的 ClientHello,按服务端选中的版本判断接受、拒绝或未知,并给出结论和选中的密码套件。只连接公网单播地址;Cloudflare 网段内的目标 Workers 不能直连,返回 verdict 为 cloudflare 且不发起连接。

访问公开(可选 Bearer)路径兼容GET /tls-versions/{host}CLI 默认text/plain

请求参数

hostquery · 字符串必填

域名或公网 IP。域名同时作为 SNI 发送。

长度:1 ~ 253 字符路径简写:/tls-versions/{host}示例:www.google.com
portquery · 整数

TLS 端口,可选 443、465、636、853、989、990、993、995、2376、4443、5061、5986、6443、6697、8443、8883、9443

默认:443示例:443
通用输出参数_format_color展开
_formatquery · 字符串

响应格式:json 或 text(plain 为 text 别名)。

可选:json | text
_colorquery · 字符串

0、false、off 或 no 关闭 ANSI 颜色。

可选:0 | false | off | no

响应体

host字符串
port整数
address字符串
serverName字符串 | null
verdict字符串
可选:modern | legacy | tls12-only | tls13-only | unsupported | unknown | cloudflare
versions对象数组
id字符串
可选:1.3 | 1.2 | 1.1 | 1.0
version字符串
可选:TLS 1.3 | TLS 1.2 | TLS 1.1 | TLS 1.0
status字符串
可选:accepted | rejected | unknown
cipher字符串 | null
alert字符串 | null
latencyMs整数