Router: Add localIP and localPort; Add sourceIP as an alias of source#4992
Router: Add localIP and localPort; Add sourceIP as an alias of source#4992
localIP and localPort; Add sourceIP as an alias of source#4992Conversation
|
break |
|
按别名处理吧, |
@RPRX says "rename" not "alias", anyway I can set it as an alias, instead of replace. |
|
OK, wait. |
|
|
|
yes, anyway |
|
|
|
|
|
ok, I fix that, it needs some changes to worker, context,... This one takes more work. so please wait... |
别名在配置阶段处理就行了 |
i say this for fixing |
done. fixing |
localIP and localPort, rename source to sourceIPlocalIP and localPort, add sourceIP as an alias of source
|
|
|
多接口(网卡)用户,有用 |
|
|
But for |
|
it seems that, we can't access Xray-core/transport/internet/udp/hub.go Line 99 in 8222f43 we only have one |
|
都存 ctx 里就行了,localIP 和 localPort 又不变,因为不同四元组会视为一个新的 UDP 流 |
|
如果你说你之前教过十年网络那我有必要怀疑伊朗的教育水平。。 |
|
|
|
but I say for UDP, so |
|
就是说路由这里匹配的是外层 source/local 和内层 target,不是内层 source, |
应该不会吧,比如 127.0.0.1 的请求,localIP 就是 127.0.0.1 |
IP_PKTINFO |
无论是什么协议,总会有接受“连接”(数据包)的接口 |
??? here we only have one
|
|
还是路由文档里注明 localIP 的匹配只作用于 TCP 吧,反正这个就是附带的,这次主要想加匹配 localPort,因为入站能监听多端口,同一个 tag 不够用 |
Ok, i will add for TCP, the rest is up to you. |
Yes. |
|
话说我看 ML-DSA-65 公钥 base64 后是 2603 个字符,而考虑到备注有中文,二进制模式的二维码能存储 2953 字节(最低纠错) 所以还有 350 字节可用,REALITY password base64 加 VLESS UUID 占大概 100,那还有。。。 所以最低纠错的话,除了 XHTTP extra 应该不会炸, |
|
字节可不是字符啊 |
|
|
|
英语的话一个字符就是一个字节,而且我看了下二维码只能用字节模式,因为字母数字模式虽然支持一些符号但不支持 & |
|
@patterniha Ready 了说一声 |
|
wait one hour. |
|
Ready |
|
我想了一下 VLESS 加密不用 ML-DSA-65 做认证了,用 ML-KEM-768,服务端生成解封装 key 和对应的封装 key,后者只有 1088 字节由客户端配置存着,首次连接时把认证密钥密文和自己的临时封装 key 发给服务端,服务端用共享密钥加密或 hash 认证密钥发给客户端即可认证服务端的身份, |
|
I am implementing two feature:
/// Both allow us to Remove an unnecessary I open PR soon with full explanation. |
I do this, open PR soon. |
别别别大可不必,按惯例一个端口对应一个服务是确定的,无论从哪访问,而根据 localIP 来分流会让所有人一头雾水 |
the key can be for doc: we only put and put others in
|
|
如果这样的话当本地 IP/Port 符合多个规则时还有优先级的问题,总之就是很麻烦, |
|
如果当初决定这么设计就直接 ":5555" 这样的语法了, |
we can respect order when unmarshaling map json. I've done this before: #4706
/// Anyway, |
localIP and localPort, add sourceIP as an alias of sourcelocalIP and localPort; Add sourceIP as an alias of source
#4984 (comment)