34 Commits
Author SHA1 Message Date
2dust c634d1baea Finalize callback shutdown on stop 2026-08-20 15:16:03 +08:00
2dust fd8b3ce164 Split delay/stats helpers into utils file
Moves outbound traffic and delay-related helper methods out of `libv2ray_main.go` into a new `libv2ray_utils.go` to keep core lifecycle code focused. The refactor also trims now-unused imports in the main file, removes the old `QueryStats` helper, and bumps `libVersion` from 39 to 40.
2026-08-20 14:57:13 +08:00
2dust b21389865e Fix delay probe request lifecycle handling 2026-07-31 16:29:16 +08:00
2dust d8b77508a5 Use libVersion constant in CheckVersionX 2026-06-10 09:48:44 +08:00
2dust 4c3a3cd051 Add QueryAllOutboundTrafficStats and bump version
Introduce CoreController.QueryAllOutboundTrafficStats to collect and reset all outbound traffic counters, returning a single-line string of semicolon-separated entries in the format: tag,direction,value; It skips counters with non-positive values and returns an empty string if statsManager is nil or no relevant counters exist. Also update CheckVersionX version constant from 36 to 37.
2026-05-19 11:36:15 +08:00
DHR60 37375aecdd Browser dialer (#184) 2026-05-03 20:08:00 +08:00
2dust 18c5fef498 Make RegisterProcessFinder a CoreController method,version = 36 2026-04-14 20:03:06 +08:00
2dust c0a0231614 Add geoip download and bump lib version 2026-03-09 15:57:05 +08:00
2dust 8f6d1a3a51 Bump library version to 34 in CheckVersionX 2026-01-12 19:35:54 +08:00
yuhan6665 f20092d489 Pass optional tun fd value to the xray-core (#175) 2026-01-12 09:27:51 +08:00
2dust 8ad3e1ddf1 up version to 33 2025-06-19 13:51:23 +08:00
2dust 22f3e73a78 Optimize the delay test, test twice and take the minimum value 2025-06-17 14:27:44 +08:00
2dust 5cdcbc611f Update libv2ray_main.go 2025-05-07 10:38:55 +08:00
Pk-web6936 ae953fdc4d Enhancements: Code Cleanup and Environmental Variable Management (#149)
* Enhancements: Code Cleanup and Environmental Variable Management

* Update libv2ray_main.go
2025-05-03 14:15:50 +08:00
patterniha 443ae5f577 fix asset bug (#150) 2025-05-03 08:40:25 +08:00
2dust 52f9e06b67 Update libv2ray_main.go 2025-04-29 10:03:09 +08:00
Pk-web6936 fd5117ab47 Increase Performance (#145)
* Update libv2ray_main.go

code with security fixes for G304 (file inclusion vulnerability) and G104 (unhandled errors).

* Update libv2ray_main.go

* Update libv2ray_main.go

* Standard formatting and removal of redundant structures

* Update libv2ray_main.go
2025-04-29 07:38:47 +08:00
2dust 6796ffc6ee Update libv2ray_main.go 2025-04-18 17:14:49 +08:00
2dust 08aa01a2c2 Refactor the code, simplify functions and features, and remove unnecessary features. (#141)
* Update main.yml

* Update main.yml

* Update libv2ray_main.go

* Update libv2ray_main.go

* Update libv2ray_main.go

* Update libv2ray_main.go

* Update libv2ray_main.go

* Delete libv2ray_support_test.go

* Delete libv2ray_support.go

* Update libv2ray_main.go

* Update libv2ray_main.go

* Update main.yml
2025-04-17 15:52:23 +08:00
Pk-web6936 6f650d49f3 Refactoring-Codes (#5) (#134) 2025-03-28 09:53:10 +08:00
Pk-web6936 acb16186b2 Refraction-Name (#133)
* Refraction-Name

Synchronization optimization and code reduction

* Refraction-Name

* Refraction-Name
2025-03-27 19:24:48 +08:00
patterniha d56745bc86 set xray.location.cert to asset path (#131) 2025-03-26 20:04:16 +08:00
ᡠᠵᡠᡳ ᡠᠵᡠ ᠮᠠᠨᡩ᠋ᠠᠨ 90bd5ee711 revert to golang.org/x/mobile (#94) 2025-01-07 13:45:25 +08:00
yuhan6665 bba66dc9f1 Clean up measure test config (#80)
- only outbound, dispatcher, log module is needed
- core app register order does not matter
2024-12-29 14:11:08 +08:00
alphax-hue3682 afe477fb5e Update dependencies (#76)
* Update go.mod

* Update go.sum

* Update libv2ray_main.go

* Update go.mod

* Update go.mod

* Update go.sum

* Update go.mod

* Update go.sum

* Update go.mod

* Update go.sum

* Update go.mod

* Update go.sum

* Update go.mod
2024-12-28 19:27:59 +08:00
ᡠᠵᡠᡳ ᡠᠵᡠ ᠮᠠᠨᡩ᠋ᠠᠨ 3b880ca10a switch to sagernet/gomobile (#77)
* switch to sagernet/gomobile

* go mod tidy
2024-12-28 19:02:29 +08:00
2dust d74f0a873f Update libv2ray_main.go 2024-05-12 11:17:57 +08:00
2dust 2cefbbc6cb Update libv2ray_main.go 2024-05-12 11:15:04 +08:00
yuhan6665 68d12f89ff Add DestIpAddress() in Dialer interface
Android client prepares an IP before proxy connection is established. It is useful when connecting to wireguard (or quic) outbound with domain address. E.g. engage.cloudflareclient.com:2408
2023-12-17 13:15:13 -05:00
yuhan6665 2fe4ac1d45 Update init with xudp basekey 2023-12-03 14:34:53 -05:00
2dust 94e0644bc1 Merge pull request #13 from yuhan6665/refresh
Refresh prepared domain every 30 minutes
2023-03-28 08:45:09 +08:00
yuhan6665 4d9fd8521a Refresh prepared domain every 30 minutes 2023-03-24 20:51:30 -04:00
2dust cb35200fbe delay test http to https 2023-01-28 15:13:13 +08:00
2dust 8c9722b2a0 refactor 2022-06-26 20:18:07 +08:00