Commit Graph
1441 Commits
Author SHA1 Message Date
Xiaokang Wang (Shelikhoo)andGitHub c3be0e2622 Add dns proxy response ttl control (#3323) 2025-04-05 15:51:27 +01:00
Xiaokang Wang (Shelikhoo)andGitHub 2fefe944ca Enable restricted mode load for http protocol client (#3315) 2025-02-16 14:11:42 +00:00
Shelikhoo 3ee9045697 chore: regenerate protos 2025-02-02 13:57:34 +00:00
Xiaokang Wang (Shelikhoo)andGitHub 442581d897 Fixing all the lint errors (#3288)
* Fixing all the lint errors!

* update lint settings
2025-01-22 08:27:48 +00:00
54fbeeba6d Resync Hysteria2 Import (#3280)
* Revert "Remove hysteria2"

This reverts commit 1d21d7a077.

* Update Hysteria2

* Rename hysteria2 module

* fix broken hy2 import version

---------

Co-authored-by: JimmyHuang454 <jimmyhuang454@gmail.com>
2025-01-14 10:06:08 +00:00
世界 f0a87b9c09 Remove replace usage 2024-12-27 09:55:31 +08:00
世界 1d21d7a077 Remove hysteria2
The hysteria2 fork used "github.com/JimmyHuang454/hysteria" removed the original license of hysteria2 (which is not allowed) and replaced it with GPL which conflicts with v2ray's license.

Given that the quality of the related code is very poor and it is not synchronized with the upstream, I deleted it.
2024-12-27 09:50:22 +08:00
KasefuchsandGitHub 6a242d1e2e feat: add jsonpb marshallers (#3165) 2024-10-12 19:26:59 +01:00
dyhkwongandXiaokang Wang (Shelikhoo) 256a8166cf Add packetEncoding for Hysteria 2 2024-09-15 14:13:26 +01:00
dyhkwongandGitHub 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 HuangandXiaokang Wang (Shelikhoo) 2078480c4e Add Add Hysteria2 Protocol 2024-09-08 08:38:05 +01:00
Xiaokang Wang (Shelikhoo)andGitHub 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
dyhkwongandXiaokang Wang (Shelikhoo) c1bc8a0a42 Fix HTTP2 proxy client with uTLS 2024-08-19 21:21:40 +01:00
dyhkwongandXiaokang Wang (Shelikhoo) 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)andGitHub 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
dyhkwongandGitHub 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
秋のかえでandGitHub 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
dyhkwongandShelikhoo 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
dyhkwongandShelikhoo 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
VigilansandShelikhoo 882a363b85 DomainStrategy support for all outbounds 2023-02-19 13:34:15 +00:00
秋のかえでandShelikhoo 67c19f7054 feat: refine PacketConnectionReader 2023-02-18 21:44:30 +00:00
秋のかえでandShelikhoo ca185b3310 chore: format code 2023-02-18 21:44:30 +00:00
秋のかえでandShelikhoo 1bd1de5f52 fix: read logic of PacketConnectionReader 2023-02-18 21:44:29 +00:00
秋のかえでandShelikhoo c10e16cb5e Style: format imports 2023-02-18 21:44:29 +00:00
秋のかえでandShelikhoo 147641e981 Style: refine code style 2023-02-18 21:44:29 +00:00
秋のかえでandShelikhoo 01a2686568 Feat: add PacketAddr support to Trojan client 2023-02-18 21:44:29 +00:00
秋のかえでandShelikhoo f2ae2777fe Feat: add PacketAddr support to Trojan server 2023-02-18 21:44:25 +00:00
VigilansandGitHub 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
VigilansandGitHub ac0d9480bd [app/dispatcher] [proxy/dns] Support domain string validation (#2188) 2022-12-10 17:07:59 +08:00
dyhkwongandGitHub d467eb7511 fix: socks4/4a client handshake (#1971) 2022-10-08 10:59:28 +08:00
Huang-Huang BaoandXiaokang Wang (Shelikhoo) 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
秋のかえでandGitHub 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