61 Commits

Author SHA1 Message Date
wyx2685
c4581ad34b
Xray core1.8.20 & support splitHTTP (#661)
* upgrade xray core 1.8.20

* support splitHTTP
2024-07-21 10:59:38 +08:00
MengXin239
793f26e763 fixed some bug 2024-06-09 20:52:32 +08:00
MengXin239
175e46d0b7 add quic support and fixed some bug 2024-06-09 17:58:22 +08:00
_rave_cat_
9261a6063d
chore: fix typos. (#640)
* chore: fix typos.

* chore: makes go-staticcheck happy.
2024-06-09 15:21:27 +08:00
Blank Paper
5ee2679924
fix compatibility with Xray-core v1.8.10 (#629) 2024-04-16 22:46:28 +08:00
Senis
115d7bad6f
Replace standard log package with logrus
The standard "log" package was replaced by the structured logger "github.com/sirupsen/logrus" for better log control in various files. This change will allow to tailor the logging information more precisely and make logs easier to read and analyze. All calls of standard log methods were replaced by their logrus counterparts.
2023-12-28 13:40:31 +08:00
Senis John
b1bfd04895
Refactor main to use Cobra command line framework and package restructure
Reorganized the Go package structure, moving the main package to 'cmd'. Upgraded the flag library to Cobra for better management of CLI commands. This included moving the X25519 key generation from a flag to its own standalone Cobra command, which improves user interaction and code modularity. This structural change will benefit future additions and code maintainability.
2023-10-14 11:21:45 +08:00
Senis John
73bc37cb51
Add EnableREALITY field and update REALITYConfig parsing
Enabled the REALITY feature on both model.go and sspanel.go for the api and service assemblies and updated the inboundbuilder to switch the REALITY feature based on the new field and condition statements. This enhancement allows finer control and visibility of the REALITY feature's activation.

In addition, the REALITYConfig in config.go was updated to remove the DisableLocal field and add the DisableLocalREALITYConfig field. The main/config.yml.example file has also been updated to reflect these changes and provide users with a clearer understanding of the config setup.
2023-10-04 23:08:59 +08:00
Senis John
f35a056cc6
Update several dependencies for bug fixes and improvements
This commit includes updates to several dependencies in go.sum file in order to incorporate bug fixes and performance improvements. The updated dependencies include 'cloud.google.com/go/compute', 'github.com/gaukas/godicttls', 'github.com/google/pprof' and 'github.com/xtls/xray-core' among others.

These updates are crucial to ensure the project runs efficiently and securely, with all known issues in these dependencies addressed in their latest versions.
2023-09-04 08:53:08 +08:00
Senis John
0f10e837e4
fix: typo 2023-06-25 12:05:14 +08:00
Senis John
5ab352f9c9
update: remove old v2board api
update: update xray-core to 1.8.3
alterID is not use anymore
2023-06-25 07:21:27 +08:00
Senis John
42da6c155d
fix: unexceptional etags handle 2023-06-11 20:07:43 +08:00
OPPO9008
a70a0d9a31
初步适配sspanel ETag 功能 (#309)
在最新sspanel 版本 M1Screw 应该找到正确下发Etag的办法了,如果你是旧版本,可以尝试
修改
res.Header().Get("ETag")
为
res.Header().Get("webapi-etag")

Co-authored-by: admin <admin@justcn2.top>
2023-06-01 18:09:08 +08:00
Senis John
9590697c29
update: switch vless flow on local config 2023-05-25 10:12:16 +08:00
Senis John
0bec6c4fdf
fix: vless and trojan flow mode 2023-05-24 20:44:26 +08:00
Senis John
c73af2309b
fix: When server port is 0, the program will not exit normally 2023-04-22 17:05:10 +08:00
thank243
169f742b76
Update core to 1.8.1 and support Reality proto (#326)
* update: Support reality proto

* fix: typo
2023-04-22 16:41:22 +08:00
pocketW
239a0eea78 fix: compatiable VLESS+TCP+TLS #245 2023-02-03 13:30:38 +11:00
pocketW
456951155d chore: support xtls-rprx-vision for VLESS 2023-02-02 22:05:33 +11:00
Senis John
8512c354f5
revert: dns hot load feat
the dispatcher mod cannot reload dns instance. So I revert the DNS feat and will create a new branch to test it.
2023-01-02 21:46:30 +08:00
Senis John
4746bd57d0
fix: reload dns service when need 2023-01-01 02:28:38 +08:00
Senis John
6477ef6c44
fix: dns memory leak
It can be properly working after xray-core accept the patch
2022-12-31 12:35:55 +08:00
Senis John
21e0ebc428
fix: Try to fix dns memory leak
update: release.yml
2022-12-30 22:19:48 +08:00
Senis John
40c65a86fc
update: reformat newV2board serverConfig structure 2022-12-28 10:36:29 +08:00
Senis John
b5a8f4464c
fix: ss2022 not working as expect
fix: minor bugs
2022-12-27 17:28:56 +08:00
pocketW
619a455432 refactor: remove unused regexp 2022-12-20 09:19:17 +11:00
pocketW
03b7bf6ed1 fix: only encode userKey with base64 for V2board 2022-12-20 09:05:18 +11:00
pocketW
ac460c2f71 Merge branch 'master' of https://github.com/XrayR-project/XrayR 2022-12-19 21:48:29 +11:00
pocketW
e1b512ef5b fix: check userKey for ss2022 2022-12-19 21:48:19 +11:00
Senis John
d9bbb836b8
fix: minor bugs 2022-12-18 16:08:56 +08:00
Senis John
1de5143fde
update: support v2board DNS rules 2022-12-18 15:31:23 +08:00
Senis John
0777cc8892
update: add ss plugin support ss2022
The error message will have more details
2022-12-16 20:43:38 +08:00
Senis John
b09f371447
fix: typo 2022-12-16 14:43:56 +08:00
Senis John
a6dbf757e9
fix: add error to ss2022's length check 2022-12-14 10:12:19 +08:00
Senis John
acd3cce667
fix: trim length of userKey for ss2022 2022-12-13 20:43:02 +08:00
Senis John
85d73408c3
update: refactor global limit cache. Use gocache lib for level 2 cache
fix: shadowsocks2022 init feat
2022-12-07 13:29:05 +08:00
Senis John
fc16cb0972
fix: shadowsocks2022 user manager not working 2022-12-04 00:42:35 +08:00
pocketW
839b15c22c fix: fix condition of check cert service
fix: check devices on redis first
2022-12-03 14:28:32 +11:00
Senis John
5b45b8ffe8
fix: refactor the InboundInfo struct
Global limit can separate settings for each node
2022-12-03 09:11:43 +08:00
Senis John
b6600729b2 update: code clean 2022-11-30 09:13:35 +08:00
Senis John
8d0225bcbb fix: On enable global limit, the online device report feat will failure
update: add pushIP method for limiter
2022-11-29 20:42:09 +08:00
thank243
d320aadb54
fix: global limit will failure on some situation (#124)
fix: typo
2022-11-28 11:16:27 +08:00
thank243
40ae48f507
update: refactor the global limit (#121)
fix: some log prefix

It an enhance device limit. Redis just use to sync local ipMap.
If global limit is enabled. The online report will faliure. All enabled nodes will report the device from redis.
2022-11-27 10:12:30 +08:00
Senis Y
183b1be519 feature: add support v2board new API
update: add eTag on fetch users for save resources
update: split cert monitor service
update: refactor log format
update: add support shadowsocks_2022

The cert monitor period = UpdatePeriodic * 60

The xray-core official is not implementation of proxy.UserManager feature. So it may change in the future.
2022-11-24 15:11:01 +08:00
Senis
e0237f5c54 fix: http mode not working
fix: use "email|uid" for global limit user identify
update: tls alpn challenge for apply certificate
2022-11-16 12:59:44 +08:00
Senis
ddce3fa86d fix: typo 2022-11-08 11:57:06 +08:00
Senis
209f5a17d6 update: rebuild the implementation of legocmd 2022-11-08 11:13:27 +08:00
Senis
3b96b352cb fix: on some circumstance, periodic will run twice 2022-11-07 15:55:30 +08:00
Senis
9a2188cb0c update: Global User IP limit. 2022-11-04 08:26:56 +08:00
Senis
838c667a87 fix: typo 2022-10-27 08:26:23 +08:00