195 Commits
Author SHA1 Message Date
Xiaokang Wang (Shelikhoo) bd9bdf73fe Add socks5ify engineering command (#3776)
* Add socks5ify engineering command

(Machine assisted.)

* Add quiet and ipv4,ipv6 host, guest flag settings to engineering socks5ify command

(Machine assisted.)

* Fix lint errors

(Machine assisted.)

* fix typo in stun-nat-type-discovery command

* Add support for keep uid for socks5ify, this will make some application that designed to not run as root happy
2026-07-08 22:51:46 +01:00
Shelikhoo 2739be73ed Add Google Docs Viewer based transport 2026-05-18 01:12:25 +01:00
Xiaokang Wang (Shelikhoo) d1e2c2391a Add RRPIT - Rapid Reliable Packet Interactive Transport (#3658)
* Add rrpit(unreleased) transport

* rrpit(unreleased) transport: boost reconstruction for the front lane

* rrpit(unreleased) transport: avoid blocking delivery of packets with smux packet reordering

* rrpit(unreleased) transport: add dual channel with differential prioritization

* rrpit(unreleased) transport: add remoteMaxDataShardsPerLane

* rrpit(unreleased) transport: add remoteMaxDataShardsPerLane(fix)

* rrpit(unreleased) transport: add auto-reconnect for transport connection

* rrpit(unreleased) transport: add auto-reconnect for transport connection

* rrpit(unreleased) transport: update tests

* rrpit(unreleased) transport: limit frame size for framed packet write closer

* rrpit(unreleased) transport: remove packet length wrapper

* rrpit(unreleased) transport: update go mod

* rrpit(unreleased) transport: update dtls error propagation

* rrpit(unreleased) transport: update broken tests

* rrpit(unreleased) transport: fix deadlock when closing persistent channel

* rrpit(unreleased) transport: add server disconnection detection for persistent connection

* rrpit(unreleased) transport: fix broken lints

* rrpit(unreleased) transport: fix broken lints

* rrpit(unreleased) transport: fix broken lints

* rrpit(unreleased) transport: fix broken lints

* rrpit(unreleased) transport: fix broken lints
2026-03-31 17:21:48 +01:00
Xiaokang Wang (Shelikhoo) 66c2586ec6 Improve API instance support (#3643)
* Improve API instance support

* fixup format
2026-03-10 19:41:03 +00:00
Xiaokang Wang (Shelikhoo) 1f4dc3b375 Stun Nat Type Testing (#3646)
* Add NAT Type Testing utility

* Add dualstack udp support for wireguard outbound

* tidy go.mod

* Do not include stun command on android by default

* fix lints

* add additional test when a secondary server was provided
2026-03-10 17:30:21 +00:00
Shelikhoo dc27b7725e Disable wireguard for dragonfly 2026-02-20 11:43:33 +00:00
Shelikhoo 4c87c9f14f Add Wireguard Support for v2ray
(mostly vibe coded)
2026-02-20 11:43:33 +00:00
Shelikhoo 6a00cc3120 Add support for enrollment links in tlsmirror 2026-02-18 17:16:52 +00:00
Shelikhoo 8d0d8f8fd1 finish inverse role server support for webtunnel 2025-11-20 19:55:41 +00:00
Shelikhoo f1c3c85795 Add request rtt reverser tool 2025-11-20 19:55:41 +00:00
Shelikhoo 85fd420745 enable roundtripper enrollment for tlsmirror 2025-11-10 12:33:16 +00:00
Xiaokang Wang (Shelikhoo) b1ef737d48 Add TLSMirror looks like TLS censorship resistant transport protocol as a developer preview transport (#3437)
* Add tlsmirror server processing routine

* Add tlsmirror server processing routine: generated

* Add tlsmirror server handshake capture

* it runs version~

* add draining copy for handshake

* refactor out base tls mirror connection

* tls mirror server side base

* add random field extraction

* add tls like encryption

* add tls like encryption (generated)

* add server side implementation for tlsmirror

* apply coding style: tlsmirror

* fix typo in mirrortls mirror crypto

* add client initial implementation for tls mirror

* add traffic generator implementation for tlsmirror

* add client processing of traffic generator originated traffic

* add embedded traffic generator support to mirrortls client

* override security setting of traffic generator if appropriate

* override security setting of traffic generator if appropriate

* apply request wait time for traffic generator

* add unsafe keyword required for linkname

* fix outbound manager registration for traffic ingress at tlsmirror client

* initial works at sticking packets together

* fix traffic generator's traffic goto logic

* fix get client and server random

* fix applying primary key

* fix log error handling for handshake random retrieval

* fix nonce generation and key derivation logic

* fix: add readPipe channel to client and server connection handlers

* fix: use detached context for persistent mirror TLS dialer

* fix: ensure proper closure of connections on context cancellation

* fix: proper detection of traffic generator originated connection

wait for connection ready before sending payload

* fix coding style
2025-07-03 11:33:16 +01:00
Xiaokang Wang (Shelikhoo) 78cd513b82 Add Persistent Storage Support to V2Ray (#3300)
* update protogen to strip unused part

* add persistent storage support

* fix coding style

* update linter setting

* update github integration
2025-02-05 20:36:40 +00:00
Xiaokang Wang (Shelikhoo) 442581d897 Fixing all the lint errors (#3288)
* Fixing all the lint errors!

* update lint settings
2025-01-22 08:27:48 +00:00
Xiaokang Wang (Shelikhoo) 69b09074f8 Add WebUI Support for V2Ray (#3284)
* Add support for web based grpc

* Avoid panic in observatory command: incorrect tag

* Add WebCommander app for web based client

* Add WebCommander app for web based client

* Add urlline subscription container format support

* avoid panic when serving user request

* refine subscription info api

* fix start consistency issue in web commander

* fix webcommander import style

* fix urlline parsing

* fix crash in subscription commander

* add webroot file serving at webcommmander

* fix crash when observatory is not found

* add autogenerated subscriptionmgr err
2025-01-17 17:42:53 +00:00
Xiaokang Wang (Shelikhoo)andJimmyHuang454 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
世界 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
Xiaokang Wang (Shelikhoo) 05345cc4fd Add Mekya Stereotype (#3185)
* Add mekya stereotype config

* Add mekya stereotype config: autogenerated

* add autogenerated files

* add mekya stereotype

* add mekya stereotype: fixup

* add mekya stereotype to default distro

* add mekya testing
2024-10-12 19:25:45 +01:00
Shelikhoo 80f1e2fa17 Add back tls certChainHash command 2024-09-08 08:38:05 +01:00
Jimmy Huang 2078480c4e Add Add Hysteria2 Protocol 2024-09-08 08:38:05 +01:00
Shelikhoo c5dcf1be03 Adjust default build set to remove pprof from default distribution 2024-09-06 15:13:32 +01:00
sunshineplan 44a28de6f8 Register pprof as a plugin 2024-09-06 15:13:32 +01:00
sunshineplan 0809cdedfe Use pprof build tag for pprof debugging 2024-09-06 15:13:32 +01:00
sunshineplan a57dfe2aad Add pprof flag for debugging 2024-09-06 15:13:32 +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
Shelikhoo 621c7d0ac8 Fix lint in main/commands/all/verify.go 2024-03-16 20:31:33 +00:00
Shelikhoo f112667190 Add data URL Link support to subscription 2023-11-26 10:55:27 +00:00
Shelikhoo cc77e90254 Add subscription manager 2023-11-26 10:55:27 +00:00
Shelikhoo e575a525bb add shadowsocks2022 tcp client support 2023-11-19 13:16:28 +00:00
heimoshuiyu 5a96b37980 Fix: empty usage message with undefined flag 2023-11-19 00:00:18 +00:00
Shelikhoo 1eefcd31f7 add httpupgrade transport 2023-10-27 13:09:58 +01:00
AkinoKaede 5f6031b1e8 chore: refine code struct 2023-10-22 22:44:35 +01:00
AkinoKaede c6c1cdbb4f feat: add tun to all distro 2023-10-22 22:44:28 +01:00
guangwu 39d2f293c6 chore: remove refs to deprecated io/ioutil (#2717)
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-10-16 10:23:50 +08:00
Shelikhoo 94639807ad add meek request stereotype 2023-05-29 23:55:45 +01:00
Shelikhoo f68115c37e add request transport base 2023-05-29 23:55:45 +01:00
Shelikhoo e4188c8604 Add uTLS support for Security Engine 2022-12-24 21:52:23 +00:00
Hork d355e80b18 Fix getting shared flags for balance info command (#1905) 2022-09-07 18:01:19 +08:00
秋のかえで 79320d34d4 Chore: bump gopkg.in/yaml.v2 to gopkg.in/yaml.v3 (#1828)
* Chore: bump gopkg.in/yaml.v2 to gopkg.in/yaml.v3

* Test: fix YAML test

* Test: refine json_test style
2022-07-13 21:21:32 +08:00
Loyalsoldier d9125f91af Fix: gci command for formatting code (#1757)
* Fix: gci command for formatting code
* Chore: format code
2022-05-01 00:47:14 +08:00
Shelikhoo 8cbfa3c6de Include VLite Server in default distribution 2022-04-28 19:32:55 +01:00
Shelikhoo 53a430ea5b Add UDP VLite Outbound to default distributions 2022-04-28 19:32:55 +01:00
Shelikhoo 3ef7feaeaf update version: auto replacement to v5 path 2022-01-02 15:16:23 +00:00
秋のかえで 423d566024 fix typo 2021-12-23 13:14:43 +08:00
Loyalsoldier dce8764fd7 Lint: fix lint (#1427)
* Lint: replace golint with revive
* Lint: fix lint
2021-11-27 17:16:41 +08:00
Loyalsoldier 43447aa2e4 Chore: format code to fix lint (#1426) 2021-11-27 14:32:07 +08:00
dyhkwong c25e33c423 Fix test command does not load default config.json (#1368) 2021-11-06 15:48:06 +08:00
世界 a66bb28aee Reformat code 2021-10-28 18:34:19 +08:00
Kslrandc0520ccf e3d966a756 Update cert.go (#1353)
Fix: the description of -name parameter is missing

Co-authored-by: c0520ccf <93182069+c0520ccf@users.noreply.github.com>
2021-10-26 23:16:35 +08:00
秋のかえで d4b6ac37e6 fix: require simplified config in all.go 2021-09-07 13:51:18 +01:00