69 Commits

Author SHA1 Message Date
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
thh1451
06fe198243
add DeviceLimit to V2RaySocks (#622) 2024-04-10 17:57:19 +08:00
thh1451
b3f31bf06b
Modify the way v2raysocks obtains methods and audits (#616)
Co-authored-by: thank243 <thank243@gmail.com>
2024-03-19 00:01:19 +08:00
thank243
0010a876f3
Remove unnecessary user retrieval in v2raysocks (#617)
The updated code eliminates a redundant user retrieval operation in the v2raysocks module. This operation was not needed because the desired information (method) can be inferred elsewhere in the application. This change simplifies the code, improves efficiency, and may reduce potential errors related to user data retrieval.
2024-03-18 23:50:18 +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
isluckys
3de7600a4c
修复类型判断问题 (#539)
之前一个pr写的if直接写成了vmess导致其他的比如说ss、Trojan的都会被覆盖
2023-12-03 19:42:03 +08:00
pennyMorant
5780731cd3
add bunpanel (#533) 2023-11-28 20:08:59 +08:00
betaxab
911b0c2ff5
api: newV2board: add Vless support (#534) 2023-11-28 20:08:44 +08:00
thh1451
56199afa90
V2RaySocks supports Reality (remote config) (#521) 2023-11-18 06:21:08 +08:00
thh1451
c170272f40
Add Etag for V2RaySocks (#518) 2023-11-12 06:21:13 +08:00
thh1451
78c2e31bdf
add 2 acts to V2RaySocks (#516) 2023-11-10 21:23:44 +08:00
Senis
76076b2d6a Refactor variable assignments in sspanel.go
Simplified the variable assignment logic in sspanel.go to increase code efficiency and readability. "tlsType" is now conditionally initialized once instead of reset multiple times, and it is also properly scoped. Removed an unnecessary check for "nodeConfig.Security" in the "Trojan" case as this value is already taken into account in the efficient, updated logic.
2023-11-08 19:26:38 +08:00
Senis John
d9971b2181
Initialize server port in sspanel
This commit initializes the server port in sspanel.go if the userListResponse is not empty. This adds a level of preventative measure to ensure port is not left uninitialized.
2023-10-28 13:19:17 +08:00
Senis John
287c30e7d0
Update application dependencies and improve error logging
This commit updates the version of many dependencies in go.sum and go.mod. It improves error handling in sspanel.go by including both the HTTP response body and error in the logged message. It also updates the xray-core version.
2023-10-18 20:58:39 +08:00
pings
4c52e33adb
对接GoV2Panel面板 (#474)
* Update actions

* up

---------

Co-authored-by: thank243 <thank243@gmail.com>
2023-10-08 12:56:26 +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
M1Screw
78f2f88296
feat: update sspanel model (#467) 2023-10-04 20:28:03 +08:00
Senis John
42a2226769
Enhanced ssPanel API by adding panel version check and improving custom config parsing
Added a function to compare the ssPanel version with the baseline version and inform users if their panel version is outdated. Made changes to improve readability and clarity in variable naming and error handling. The handling of the custom config feature has also been significantly optimized, providing more efficient use and easier debugging of parsing issues. The overall changes lead to better compatibility with different ssPanel versions and a more user-friendly custom config feature.
2023-10-04 16:50:52 +08:00
M1Screw
71aba0601e
feat: unify trojan transport & add ss2022 related config (#465) 2023-10-04 10:44:45 +08:00
Senis John
5fe18e020d
Refactor sspanel and test files in the API
Fixed typos, changed variable naming to follow camel case convention, simplified the error handling, and refactored the function names in sspanel.go for improved readability and consistency. Accordingly, updated the test function names in sspanel_test.go to match the changes made in the main file. Additionally, the if condition in ParseSSPanelNodeInfo was streamlined to improve the function's readability and error handling. The changes will help in better understanding the code while debugging or adding new features.
2023-10-04 09:45:52 +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
OPPO9008
5d5470a919
修复http伪装配置解析 (#389)
根据sspanel代码,headerType 才是下发订阅的参数
2023-06-21 07:14:20 +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
4f13aac094
fix: sspanel custom flow config doesn't work 2023-05-25 21:08:56 +08:00
Senis John
4ab196ad29
fix: local vless flow config doesn't work 2023-05-25 20:39:46 +08:00
Senis John
9590697c29
update: switch vless flow on local config 2023-05-25 10:12:16 +08:00
Senis John
b49798ab16
fix: sspanel version >= 2023.2 will discard node status report.
fix: return error message for null user list
2023-05-18 01:23:46 +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
Senis John
ea2f7a64e1
fix: newV2board cannot parse tcp http header
fix: typo
chore: update deps
2023-01-11 13:17:53 +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
Senis John
451b5a1fd4
fix: typo 2022-12-27 16:10:51 +08:00
Senis John
8ddf257aa4
update: release.yml
fix: typo
2022-12-27 15:10:17 +08:00
Senis John
a8742426b3
update: refactor newV2board parser's structure 2022-12-27 12:00:34 +08:00
Senis John
d44fa11eee
update: support v2board v1.7.2 routes structure
After update this version, the v2board version must >= 1.7.2 release
2022-12-26 12:41:18 +08:00
Senis John
0c2d03f3e0
update: add error message for none user 2022-12-25 09:01:26 +08:00
Senis John
4c699d86f2
update: compatible with v2board v1.7.1 route rules 2022-12-21 20:09:09 +08:00
Senis John
d5ab69d703
update: support v2board shadowsocks obfs settings
fix: v2board route block bugs
2022-12-19 01:21:27 +08:00
Senis John
1de5143fde
update: support v2board DNS rules 2022-12-18 15:31:23 +08:00
Senis John
77814acd1a
fix: typo and remove redundant conversion 2022-12-18 10:27:59 +08:00
pocketW
3926463c59 feat: add shadowsocks2022 support for v2raysocks 2022-12-18 12:11:55 +11: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
pocketW
443fb959f6 fix: type conversion 2022-12-15 23:00:56 +11:00
Senis John
040e19ee87
fix: Priority local speed limit 2022-12-15 19:51:43 +08:00
pocketW
addde0f8d4 feat: read speed limit from V2board
chore: update dependence
2022-12-15 22:31:35 +11:00
Senis John
9ef39925fd
fix: newV2board rule regexp pattern 2022-12-15 09:55:49 +08:00
Senis John
676365b13b
update: Add support NewV2board api block rules 2022-12-07 23:26:09 +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