Commit Graph

66 Commits

Author SHA1 Message Date
gVisor bot
17f1ef7cb0 fix: golang1.19 can't compile 2023-02-26 22:20:25 +08:00
gVisor bot
b7371738c4 fix: handle no IP address 2023-02-26 21:01:44 +08:00
gVisor bot
e1e7f6349c fix: dual stack serial dial 2023-02-26 20:15:28 +08:00
gVisor bot
4d336e8278 fix: dns resolve in dialer 2023-02-26 13:52:10 +08:00
gVisor bot
9a55e50a14 fix: replace self define "connect timeout" to os.ErrDeadlineExceeded 2023-02-26 13:06:10 +08:00
gVisor bot
fd4898779b fix: ip version prefer not working 2023-02-26 12:39:53 +08:00
gVisor bot
bdb4aa3c1f refactor: tcp dial (#412)
Non-concurrent support to try to connect in turn

fix: serial dual stack dial
2023-02-26 12:12:25 +08:00
gVisor bot
af6f85c657 chore: support TFO for outbounds 2023-02-24 13:53:44 +08:00
gVisor bot
331744e5e3 fix: add "dns resolve failed" error in dialer 2023-02-22 19:14:11 +08:00
gVisor bot
e063925518 chore: better windows bind error handle 2023-02-22 13:41:33 +08:00
gVisor bot
38fe64d6b8 chore: support golang1.20's dialer.ControlContext 2023-02-13 11:14:19 +08:00
gVisor bot
28770ca5dc chore: better bind in windows 2023-02-13 10:14:59 +08:00
gVisor bot
57cd902214 chore: cleanup code 2022-12-22 09:53:25 +08:00
gVisor bot
861357234f chore: relay support tuic 2022-12-20 00:11:02 +08:00
gVisor bot
ec0136af1b chore: rebuild relay 2022-12-19 21:34:07 +08:00
gVisor bot
52924804ef fix: fix bindIfaceToListenConfig() in windows force bind to an ipv4 address 2022-12-13 11:18:32 +08:00
gVisor bot
a6e88229d6 fix: let doh/dot server follow hosts and can remotely resolve itself ip 2022-12-07 20:01:44 +08:00
gVisor bot
0f4a0a7275 chore: add tuic outbound
close #133
2022-11-25 08:08:14 +08:00
gVisor bot
a79d7c80cb chore: Adjust error of dialer 2022-11-19 10:57:33 +08:00
gVisor bot
6afa624bf3 chore: return context error 2022-11-19 10:50:13 +08:00
gVisor bot
bcef894237 chore: Adjust the return 2022-11-19 10:47:03 +08:00
gVisor bot
722e8a6c27 Merge branch 'dev' of https://github.com/Dreamacro/clash into Alpha 2022-11-12 20:43:48 +08:00
gVisor bot
71ab8298a2 chore: always pass context when resolve dns 2022-11-12 13:18:36 +08:00
gVisor bot
3a750588b8 fix: when connection refused active health test 2022-10-16 13:12:49 +08:00
gVisor bot
45aff6c969 fix: no main result conn, will fail 2022-08-28 20:26:13 +08:00
gVisor bot
2022605546 feat: add ip-version param 2022-08-28 13:41:43 +08:00
gVisor bot
3e649ae8e8 fix: Unhandled dns resolve failure error 2022-08-13 16:47:24 +08:00
gVisor bot
30b2c58ab5 chore: tcp conn error text 2022-07-11 22:29:35 +08:00
gVisor bot
57ab6ab58f Chore: cleanup bind mark code 2022-06-30 17:27:57 +08:00
gVisor bot
ae3e6524c5 fix: tcp concurrent force close when context done 2022-06-25 09:16:53 +08:00
gVisor bot
17769e1a8f fix: udp listen use udp4 when general.ipv6 is false; general.ipv6 default value is true 2022-06-14 12:36:05 +08:00
gVisor bot
00e33008f6 fix: 关闭并发时双栈使用错误 2022-05-27 20:43:39 +08:00
gVisor bot
322edc166f feat: RESTful API support set tcp-concurrent 2022-05-26 19:49:12 +08:00
gVisor bot
cd8c87aad5 chore: log show all ips when all ips shake hands failed 2022-05-13 21:43:42 +08:00
gVisor bot
d1aa6d1431 refactor: tcp concurrent 2022-04-27 21:37:20 +08:00
gVisor bot
746e1382b5 chore: Adjust the tcp-concurrent and sniffer log 2022-04-27 15:22:42 +08:00
gVisor bot
d946a76a0d chore: Adjust the connection IP log 2022-04-23 08:53:51 +08:00
gVisor bot
bb14ae7075 fix: general ipv6 is false should be broke ipv6 conn 2022-04-23 00:30:25 +08:00
gVisor bot
532ec82a08 feat: support tcp concurrent, Separate dialing and dns resolver ipv6
tcp-concurrent:true
2022-04-23 00:27:22 +08:00
gVisor bot
e2dbbb7cfe Refactor: metadata use netip.Addr 2022-04-20 22:52:05 +08:00
gVisor bot
67d04485ca Refactor: MainResolver 2022-03-28 00:44:13 +08:00
gVisor bot
446fd99436 Chore: Merge branch 'ogn-dev' into with-tun 2022-03-16 20:16:30 +08:00
gVisor bot
907c68c9cb Migration: go 1.18 2022-03-16 12:10:13 +08:00
gVisor bot
0175b103d0 Chore: refactor TUN 2022-03-09 05:08:35 +08:00
gVisor bot
e5358cd03a Feature: resolve ip with a proxy adapter 2022-02-23 02:38:50 +08:00
gVisor bot
ef86484c70 Chore: use golangci-lint config file 2022-02-19 00:08:51 +08:00
gVisor bot
47359cc80f Fix: routing-mark should effect on root 2022-02-17 14:23:47 +08:00
gVisor bot
85f1b22340 Fix: multiple port string parsing overflow (#1868)
Ports in TCP and UDP should be parsed as an unsigned integer,
otherwise ports > 32767 get truncated to 32767. As this is
the case with Metadata.UDPAddr(), this fundamentally breaks
UDP connections where demand for high port numbers is high.

This commit fixes all known cases where ParseInt is used for ports,
and has been verified to fix Discord voice connections on port
50001~50004.

Fixes: d40e5e4fe6

Co-authored-by: Hamster Tian <haotia@gmail.com>
2022-01-02 01:09:29 +08:00
gVisor bot
d6454f36bf Fix: bind iface should throw control error 2021-11-10 22:19:11 +08:00
gVisor bot
f0e12a1285 Fix: windows arm7 build 2021-11-08 21:24:39 +08:00