Commit Graph

7 Commits

Author SHA1 Message Date
e1732a364fed
cc758dec66 全面修订代码;完成 grpcSimple包;使用 tag选择编译quic 和 grpc
grpcSimple包的服务端和客户端现在都已完成,且兼容v2ray等内核。
grpcSimple包 简洁、高效,更加科学。暂不支持multiMode。

若 grpc_full 给出,则使用grpc包,否则默认使用 grpcSimple包。
若 noquic给出,则不使用 quic,否则 默认使用 quic。

修复 ws early 失效问题;
2022-04-28 05:41:56 +08:00
e1732a364fed
4e700d7475 重构advLayer代码,完全使用通用接口. 2022-04-27 19:56:13 +08:00
hahafool
27872e7dfc rename 2022-04-25 18:33:24 +08:00
hahafool
6ecbfe7b18 修订文档;添加http伪装头;修复一个path的bug
http头配置同时 支持ws。添加相关的示例文件.

修复 path 为 "/" 时无法连接的bug, 这是因为原代码在 requestfilter.go中, bs[5] == ' ' 这个判断没有过滤 Get / http1.1 等类似的情况

将 filter.go 重命名为 requestfilter.go ,因为现在也产生了过滤response的可能性。
2022-04-18 21:59:46 +08:00
hahahrfool
8eecbacc57 netLayer.RandPort 添加 mustValid, isudp参数, 保证端口可用. 2022-04-16 10:10:06 +08:00
hahahrfool
55abc3ec35 修订代码; 添加advLayer支持所有协议的 打印功能 2022-04-10 09:44:38 +08:00
hahahrfool
0598508348 将 ws/grpc/quic 文件夹全部移动到 advLayer 文件夹;修订文档 2022-04-10 09:10:43 +08:00