hahahrfool
|
c5ab5a201c
|
由新的udp架构重新设计udp分离信道传输方式和vless v1协议并初步实现代码
|
2022-04-11 18:47:35 +08:00 |
|
hahahrfool
|
ca01f2494b
|
修订文档, 修订、优化代码
netLayer的 Relay 和 Relay_UDP 函数现在同时记录下载以及上传总流量
为了给 udp 的 单路 fullcone 机制作准备, 代码作出如下改动:
main.go 中的 dialClient 现在分成 dialClient 和 dialClient_andRelay 这两个函数。
变更 proxy.Client 接口,新增 IsUDP_MultiChannel 和 SetUDPDialFunc 方法
移除 vless v1部分的 crumfurs代码。 因为现在最新计划 将不再使用单独 crumfurs信道。
可参考 最新 vless_v1.md 文档中的改变。
|
2022-04-11 12:03:53 +08:00 |
|
hahahrfool
|
1caa5e26c8
|
修订代码;修复udp direct 时 重复dial的问题
|
2022-04-11 08:21:32 +08:00 |
|
hahahrfool
|
a225a7409d
|
修订文档,示例;修复trojan的udp的bug以及dokodemo的udp的bug;
在根目录添加 trojan 的 udp 的go test,并通过了测试
|
2022-04-10 21:42:38 +08:00 |
|
hahahrfool
|
dc16dba65d
|
修订文档; 将大部分Fatal的代码改为Error.
|
2022-04-07 18:18:14 +08:00 |
|
hahahrfool
|
2d384314f4
|
修订,重构代码, 修复dns的bug; 添加Dns的DoT功能.
修复dns配置中"特殊服务器" 无法被正确配置、使用的bug
将 proxy.Standard结构 移动到 项目根目录的 StandardConf.
将 proxy.AppConf, LoadTomlConfStr, LoadTomlConfFile 函数 移动到根目录
因为 StandardConf和 AppConf里包含很多App级别的配置, 不宜放到proxy子包中
将 proxy.RuleConf 移动到 netLayer
将 proxy.LoadRulesForRoutePolicy 移动到 netLayer
将 proxy.LoadDnsMachine 移动到 netLayer
在dnsquery失败后,会判断错误, 若发现是Read错误,则会试图重新拨号
|
2022-04-07 13:45:24 +08:00 |
|
hahahrfool
|
0f4acfb168
|
修订代码、配置、示例
|
2022-04-06 14:00:23 +08:00 |
|
hahahrfool
|
f6081cc8be
|
修订代码;添加【下载geosite文件】的交互命令,可自动通过节点下载
|
2022-04-05 19:08:44 +08:00 |
|
hahahrfool
|
2c9c993c11
|
修订文档、示例; 修复在windows上直连时readv闪退的bug;
这次在程序ctrl+C关闭时, 会主动Close所有的监听端口. 主要是被报告windows有时退出程序之后, 端口还是处于占用状态.
试图引进新的 Makefile_release 文件 以及新的workflow文件 来快速编译发布包
|
2022-04-03 14:32:23 +08:00 |
|
hahahrfool
|
dfecd89d14
|
添加dns功能; 解决grpc 悬垂链接问题;
该悬垂问题可能就是v2ray/xray的 “grpc断流问题”,已被本commit轻松搞定。
dns配置:
[dns]
servers = [
"udp://114.114.114.114:53" # 如果把该url指向我们dokodemo监听的端口,就可以达到通过节点请求dns的目的.
]
[dns.hosts] # 自己定义的dns解析
"www.myfake.com" = "11.22.33.44"
"www.myfake2.com" = "11.222.33.44"
一旦配置了dns项,则所有dns都会试图向默认dns服务器请求;
该功能尚不完善。
|
2022-04-01 00:26:35 +08:00 |
|
hahahrfool
|
6ef8bf57c1
|
添加quic和hy阻控; 若tls证书配置未指明,会在内存生成随机rsa证书
|
2022-03-30 14:33:14 +08:00 |
|
hahahrfool
|
f2adcdcd45
|
防止udp转发时被裸奔;修缮socks udp associate
修订代码,文档,示例
添加 NumErr 结构; 从 handshakeInserver_and_passToOutClient 函数 分离出一个 dialClient 函数。
在socks5包中添加 client.go 文件,以及三个udp相关的客户端请求udp函数
之前的udp associate代码被证明是有很多bug的,现在被我一一修复,并通过了 udp_test.go的测试。
|
2022-03-29 19:00:14 +08:00 |
|
hahahrfool
|
81160e8db2
|
广泛修订代码, 注释
|
2022-03-28 22:07:18 +08:00 |
|