v2ray-core icon indicating copy to clipboard operation
v2ray-core copied to clipboard

对带有空格域名的支持

Open yyiu opened this issue 1 year ago • 1 comments

你正在使用哪个版本的 V2Ray?

5.19.0

你看到的异常现象是什么?

域名列表中有带空格的数据时,会出错

比如加入

          "domain": [ 
                "domain:Mijia Cloud",

运行后出现 Failed to start: main/commands: failed to create server > app/router: failed to build domain condition > app/router: failed to create domain matcher > pattern string does not conform to Letter-Digit-Hyphen (LDH) subset 这样的提示 注释掉后,正常运行

yyiu avatar Sep 25 '24 18:09 yyiu

Mijia Cloud 不是一个有效的域名。

Mijia Cloud 是硬编码的 SNI,应当不会发出 DNS 查询,且 destOverride 不会覆盖无效的 LDH subset https://github.com/v2fly/v2ray-core/blob/6c091e66450639e2a091cd8067a5d2f3ec96079a/app/dispatcher/default.go#L227-L233

不应该还会遇到 Mijia Cloud 这个无效域名。

dyhkwong avatar Oct 12 '24 12:10 dyhkwong