1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00
Commit Graph

1434 Commits

Author SHA1 Message Date
Kasefuchs
6a242d1e2e
feat: add jsonpb marshallers (#3165) 2024-10-12 19:26:59 +01:00
dyhkwong
256a8166cf Add packetEncoding for Hysteria 2 2024-09-15 14:13:26 +01:00
dyhkwong
84adf2bdb2
Some fixes about Hysteria 2 (#3147)
* hysteria2: remove unused code

* hysteria2: don't ignore some errors

* hysteria2: properly implement TCP request padding

* hysteria2: fix dialer reuse
2024-09-08 17:39:40 +01:00
Shelikhoo
764fb2f7d8 removed unused hy2 config 2024-09-08 08:38:05 +01:00
Jimmy Huang
2078480c4e Add Add Hysteria2 Protocol 2024-09-08 08:38:05 +01:00
Xiaokang Wang (Shelikhoo)
7db39fb566
Add (Experimental) Meyka Building Blocks to request Transport (#3120)
* add packetconn assembler

* let kcp use environment dependency injection

* Add destination override to simplified setting

* add dtls dialer

* add dtls listener

* add dtls to default

* fix bugs

* add debug options to freedom outbound

* fix kcp test failure for transport environment
2024-08-22 04:05:05 +01:00
dyhkwong
c1bc8a0a42 Fix HTTP2 proxy client with uTLS 2024-08-19 21:21:40 +01:00
dyhkwong
005812cd37 fix shadowsocks2022 non-EIH UDP panic 2024-05-05 11:26:31 +01:00
Shelikhoo
439d13a3b0 Add DelayAuthWrite to socks client 2024-03-16 20:17:43 +00:00
Shelikhoo
85b04d1af9 Fix coding style lints 2024-03-15 20:19:18 +00:00
Shelikhoo
04275b6991 Fix unsafe math rand usage 2024-03-15 20:19:18 +00:00
Shelikhoo
1fcaca7145 enable restricted mode load for some settings 2023-11-26 10:55:27 +00:00
Xiaokang Wang (Shelikhoo)
b6da3e86a5
Shadowsocks2022 Client Implementation Improvements (#2770)
* Shadowsocks2022 Client Implementation Improvements

1. Added UDP Replay Detection
2. Added UDP Processor State Cache
3. Added More Detailed Output for Time Difference Error
4. Replaced Mutex with RWMutex for reduced lock contention
5. Added per server session tracking of decryption cache and anti-replay window
6. Adjust server session track time
7. Increase per session buffer to 128
8. Fix client crash when EIH is not enabled
9. Fix client log contains non-human-friendly content
10.Remove mark and remove for trackedSessions
11. Fixed packet size uint16 overflow issue
2023-11-24 00:40:07 +00:00
Shelikhoo
39851b3732 fix proxy ss2022 client lints 2023-11-19 13:16:28 +00:00
Shelikhoo
8a1777ce62 implement ss2022 client timestamp check as per spec 2023-11-19 13:16:28 +00:00
Shelikhoo
d8e32f17bd add shadowsocks2022 udp client support 2023-11-19 13:16:28 +00:00
Shelikhoo
e575a525bb add shadowsocks2022 tcp client support 2023-11-19 13:16:28 +00:00
Shelikhoo
cb84b28de4
Update generated protobuf files to v1.31.0 2023-10-24 19:50:30 +01:00
dyhkwong
8de2f27043
fix protocol matching in routing (#2540)
* remove invalid http2 sniffer

* do not set metadata protocol for http inbound

http inbound may have transport settings

* fix doh metadata protocol
2023-09-14 08:27:36 +08:00
秋のかえで
d58649764e
fix: parse for the CipherType of Shadowsocks in simplified config (#2510) 2023-07-25 16:27:53 +08:00
Shelikhoo
5a68536530
Add h1SkipWaitForReply Option to http proxy protocol: auto generated 2023-05-29 00:07:26 +01:00
Shelikhoo
cfc6bd465b
Add h1SkipWaitForReply Option to http proxy protocol 2023-05-29 00:07:26 +01:00
dyhkwong
8433420654
make use of buf.NewWithSize() in Trojan's PacketReader and PacketWriter
also fix a domain length check bug
2023-05-24 00:18:19 +01:00
dyhkwong
923d49464d
proxy/trojan: fix writing UDP packet
close v2fly#2440, close v2fly#1795
2023-05-24 00:18:19 +01:00
Shelikhoo
680d5bb2ac
refactor trojan WriteHeader function. 2023-05-24 00:10:44 +01:00
AkinoKaede
72475c2924
fix: always send Trojan header 2023-05-23 14:05:10 +08:00
Shelikhoo
9308de4e74
Fix incorrect UDP length in Torjan packet addr 2023-03-19 23:23:02 +00:00
Vigilans
882a363b85
DomainStrategy support for all outbounds 2023-02-19 13:34:15 +00:00
秋のかえで
67c19f7054
feat: refine PacketConnectionReader 2023-02-18 21:44:30 +00:00
秋のかえで
ca185b3310
chore: format code 2023-02-18 21:44:30 +00:00
秋のかえで
1bd1de5f52
fix: read logic of PacketConnectionReader 2023-02-18 21:44:29 +00:00
秋のかえで
c10e16cb5e
Style: format imports 2023-02-18 21:44:29 +00:00
秋のかえで
147641e981
Style: refine code style 2023-02-18 21:44:29 +00:00
秋のかえで
01a2686568
Feat: add PacketAddr support to Trojan client 2023-02-18 21:44:29 +00:00
秋のかえで
f2ae2777fe
Feat: add PacketAddr support to Trojan server 2023-02-18 21:44:25 +00:00
Vigilans
f8ac919d66
[app/dns] Support per-client configuration for fakedns (#2212)
* Move `filterIP` from `hosts.go` to `dnscommon.go`

* Implement adding pools for fakedns.HolderMulti

* Implement per-client fakedns for DNS app

* Remove `dns.ClientWithIPOption` and replace with new programming model

* Implement JSON config support for new fakedns config

* Fix lint and tests

* Fix some codacy analysis
2022-12-15 10:38:28 +08:00
Vigilans
ac0d9480bd
[app/dispatcher] [proxy/dns] Support domain string validation (#2188) 2022-12-10 17:07:59 +08:00
dyhkwong
d467eb7511
fix: socks4/4a client handshake (#1971) 2022-10-08 10:59:28 +08:00
Huang-Huang Bao
ddc6312c5d Fix: guard against nil pointer dereference of (*NetworkList) 2022-09-07 10:50:17 +01:00
Shelikhoo
137cd7093c
chore: regenerate protobuf file 2022-09-06 20:36:27 +01:00
秋のかえで
8b7d283bf8
Feat: rename network to networks for JsonV5 2022-08-19 22:28:20 +08:00
秋のかえで
adb7871f82
Feat: refine cipher and network config (#1436) 2022-08-19 20:41:18 +08:00
秋のかえで
8f883040ab
Lint: add nolint flags to avoid SA1029 2022-08-19 20:09:39 +08:00
秋のかえで
a788be738e
Lint: add nolint flags to avoid lint 2022-08-19 20:05:50 +08:00
世界
fc6ae4d4e7
Fix lint 2022-06-28 21:36:12 +08:00
yuhan6665
9484390b18 Fix TestUserValidator 2022-06-25 19:39:21 +01:00
lrh2000
396ee770b7
proxy: Unify timeouts of different protocols for reading the first payload 2022-06-25 19:34:32 +01:00
lrh2000
17d85263e2
proxy/http: Avoid getting stuck when using server-first protocols
PR #99 reduces an extra RTT when setting up the CONNECT tunnel
via http proxy, however, server-first protocols (such as MySQL)
will be unusable as v2ray keeps to wait for the client request.
This commit solves the problem by limiting the maximum waiting
time to 50 ms.
2022-06-25 19:26:33 +01:00
Shelikhoo
5eff77c48a
Fix DoS attack vulnerability in VMess Option Processing 2022-06-12 23:29:09 +01:00
dyhkwong
703b2da5a7 Fix "disable quit on connection interrupt" 2022-05-02 15:50:35 +01:00