Commit Graph

389 Commits

Author SHA1 Message Date
e1732a364fed
6cdbf89220 修订tls配置格式,代码,移除utls项,添加 tls_type项。为shadowTls做准备 2022-12-21 23:31:13 +08:00
e1732a364fed
12f7dd1bc6 移除 ClientCreator.UseUDPAsMsgConn 方法 2022-12-21 14:08:31 +08:00
e1732a364fed
c8ce5046db 修复shadowsocks的udp传输错误问题, fix #201
该问题来自vs的一个超陈旧的 udp bug,应该是自从实现了dns功能之后就存在了

当时写错了,把拷贝buf的方向写反了,而且错误地返回了EOF

同时realTargetAddr的network从dual写为udp的位置也需要提前

而且ss实际上不需要也不可能自己处理拨号。

我真是太笨拙了, 犯下这么多错。
2022-12-21 14:01:09 +08:00
e1732a364fed
e9128e7fdf 增加 extra.tun_dns配置,若未给出,默认为8.8.8.8 2022-12-20 20:29:44 +08:00
e1732a364fed
822705e37b tun的自动路由在win上添加一条设置dns的命令
如果不设置wintun的dns,会默认走默认路由的dns,会导致收到外部的dns污染
2022-12-20 18:34:54 +08:00
e1732a364fed
eed0784f3e 修订代码;令tun在darwin不给出名称时使用系统指派的名称 2022-12-20 17:25:02 +08:00
e1732a364fed
af9917a657 根据 xjasonlyu/tun2socks提供的路由示例修复darwin的tun的自动路由
https://github.com/xjasonlyu/tun2socks/wiki/Examples

我自己写的路由果然太差,还是人家提供的好用
2022-12-20 11:16:49 +08:00
e1732a364fed
b102bd6fa1 补充提交 2022-12-20 00:15:04 +08:00
e1732a364fed
d219a33703 修复ss的udp的写入错误 2022-12-20 00:14:21 +08:00
e1732a364fed
097db3b017 MsgConn接口方法重命名:WriteMsgTo -> WriteMsg 2022-12-19 20:26:36 +08:00
e1732a364fed
2da0e63558 MsgConn接口方法重命名:ReadMsgFrom -> ReadMsg 2022-12-19 20:18:35 +08:00
e1732a364fed
e94ead14fb 修订代码,使tun的udp可用; 2022-12-19 19:07:54 +08:00
e1732a364fed
ece4996342 修订文档,将v2ray_simple中的proxy和adv子包引用转到cmd/verysimple中
v2ray_simple 包作为公共包,不应强制用户使用任何一种proxy
2022-12-19 11:47:42 +08:00
e1732a364fed
d27b659bf7 tun 不用chan而用回调函数,增强性能
用chan完全多此一举
2022-12-19 09:22:57 +08:00
e1732a364fed
92f2c1df70 SelfListen接口不用chan而用回调函数,增强性能
用chan完全多此一举
2022-12-19 09:14:36 +08:00
e1732a364fed
673bf2faf1 修订文档,代码;令关闭tun时不卡住;-d自动下载wintun.dll;notun编译tag
新增 notun  build tag,取消 tun和 gui之间的关联。
2022-12-19 08:41:25 +08:00
e1732a364fed
2ff907d335 修订文档,示例 2022-12-18 21:28:37 +08:00
e1732a364fed
6293af57ae 上一个commit测试成功. 修改windows的tun的自动路由以支持bindToDevice 2022-12-18 21:00:47 +08:00
e1732a364fed
7b2c4cd336 修订代码,文档;修复darwin和windows的bindToDevice的ipv6问题 2022-12-18 20:30:09 +08:00
e1732a364fed
3b814fa08e 修订tun文档,代码;修复darwin上tun在bindToDevice时遇到的问题 2022-12-18 20:20:28 +08:00
e1732a364fed
60271dcabd 修订tun文档,代码;前几个commit一直在修tun linux auto route,修好了 2022-12-18 16:26:09 +08:00
e1732a364fed
18e216326b 修正代码 2022-12-18 16:15:22 +08:00
e1732a364fed
5f980a3686 修正代码 2022-12-18 16:07:10 +08:00
e1732a364fed
e8fe7048c3 修正代码 2022-12-18 15:56:10 +08:00
e1732a364fed
e5a88e5e5c 修订tun代码 2022-12-18 15:50:34 +08:00
e1732a364fed
7c92afc260 修正代码 2022-12-18 15:43:03 +08:00
e1732a364fed
613b4ce54a 修正笔误 2022-12-18 15:21:11 +08:00
e1732a364fed
be6933607b 修正代码 2022-12-18 15:19:09 +08:00
e1732a364fed
4512122149 修正代码 2022-12-18 15:17:16 +08:00
e1732a364fed
bb3f73b03f 修正代码 2022-12-18 15:09:35 +08:00
e1732a364fed
6950e3026a 添加tun的linux的auto route;ui -> v0.0.1-alpha.12; 2022-12-18 15:06:16 +08:00
e1732a364fed
f00495fc26 修订文档和依赖 2022-12-16 18:15:03 +08:00
e1732a364fed
b85c886415 修正action 2022-12-16 16:30:19 +08:00
e1732a364fed
260cfd971b 使用更聪明的方式获取darwin的网关 2022-12-16 16:03:12 +08:00
e1732a364fed
abf53be491 修订tun自动路由代码 2022-12-16 09:17:20 +08:00
e1732a364fed
58d93eb09a 修订代码;gui添加开关系统代理功能 2022-12-16 01:34:56 +08:00
e1732a364fed
469ecc33b9 修订文档,添加生成uuid后退出的命令行参数 -gu 2022-12-15 18:59:01 +08:00
e1732a364fed
4e19050315 修正action;将ConnWrapper的GetRawConn改为Upstream 2022-12-15 12:22:12 +08:00
e1732a364fed
e7ee2a6d86 Merge branch 'tun_wiregard' 2022-12-15 10:06:25 +08:00
e1732a364fed
7ed04c07ff 修订代码,文档; 修改SelfListen签名;添加手动auto route选项
SelfListen返回一个bool和两个int; windows auto route中sleep4秒
2022-12-15 05:52:15 +08:00
e1732a364fed
237ee90c66 重新使用自动命令,最后一条等待2秒 2022-12-15 05:15:37 +08:00
e1732a364fed
756f5a9d15 修订代码 2022-12-15 05:05:31 +08:00
e1732a364fed
2b98ae65a5 让用户手动运行命令 2022-12-15 04:52:13 +08:00
e1732a364fed
b5753cf166 修订代码,给出所有运行过的windows tun_auto_route的命令 2022-12-15 04:51:04 +08:00
e1732a364fed
b3b7cb8c78 修订代码 2022-12-15 04:34:04 +08:00
e1732a364fed
8ce5191a6b 修订代码 2022-12-15 04:30:58 +08:00
e1732a364fed
00cc41e20b 修订代码 2022-12-15 04:17:55 +08:00
e1732a364fed
f947b2a479 修订代码 2022-12-15 04:16:21 +08:00
e1732a364fed
b74b8bdc6f 修订代码 2022-12-15 04:09:59 +08:00
e1732a364fed
d7f0c51ece 修订代码 2022-12-15 02:48:09 +08:00