hahahrfool
|
30eb874dc2
|
修订代码,示例;添加 udp_timeout 配置
|
2022-04-07 14:03:31 +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
|
8a1c86b933
|
添加解析域名策略,0默认4先查ip4,6先查6;40只查ipv4,60只查ipv6
|
2022-04-03 21:56:01 +08:00 |
|
hahahrfool
|
4397a7225c
|
删掉过于复杂的workflow编译,节约能源;修订代码,文档,示例
|
2022-04-03 10:58:23 +08:00 |
|
hahahrfool
|
a8654e198e
|
试图修复udp close无效的问题,可能导致 too many opened sockets.
|
2022-04-02 09:24:15 +08:00 |
|
hahahrfool
|
814bcb29f5
|
添加大量交互模式功能
为交互模式添加如下功能:生成uuid,生成随机tls证书,查询当前状态,交互式生成配置文件
|
2022-04-01 19:13:47 +08:00 |
|
hahahrfool
|
8ad0905ce9
|
feat:apiServer;修复生成的证书无法使用的问题;修复小bug
添加如下命令行参数
-i interactive mode (只是加了一个参数, 还未实现交互功能)
-ea enable api server
-spp api Server Path Prefix, must start with '/',默认值 /api
只有 -ea命令行参数给出后,才会运行api服务器
默认allstate 的api的url 为 https://127.0.0.1:48345/api/allstate
用到basic auth,用户名为admin
密码的toml配置是
[app]
admin_pass = "adfadfadfadfa"
修订 api草案
|
2022-04-01 17:52:18 +08:00 |
|
hahahrfool
|
e732ea3c3b
|
修订代码;修复loglevel为debug时失效问题;dns请求加锁,已经可用
|
2022-04-01 12:31:47 +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 |
|