Skip to content

Commit

Permalink
6-6
Browse files Browse the repository at this point in the history
  • Loading branch information
aiastia committed Jun 6, 2024
1 parent d70ea29 commit 304387b
Show file tree
Hide file tree
Showing 53 changed files with 40,884 additions and 796 deletions.
38 changes: 20 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
main/main
main/XrayR
main/XrayR*
main/mytest
main/access.logo
main/error.log
api/chooseparser.go.bak
common/Inboundbuilder/.lego/
common/legocmd/.lego/
.vscode/launch.json
main/.lego
main/cert
main/config.yml
./vscode
.idea/*
.DS_Store
*.bak
go.work*
.idea
*.iml
out
gen
*.exe
*.exe~
*.dll
*.so
*.dylib
*.test
*.out
go.work
main
XrayR
XrayR*
access.log
error.log
.lego
cert
config.yml
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Build go
FROM golang:1.20-alpine AS builder
FROM golang:1.22.0-alpine AS builder
WORKDIR /app
COPY . .
ENV CGO_ENABLED=0
RUN go mod download
RUN go build -v -o XrayR -trimpath -ldflags "-s -w -buildid=" ./main
RUN go build -v -o XrayR -trimpath -ldflags "-s -w -buildid="

# Release
FROM alpine
Expand Down
1 change: 1 addition & 0 deletions README-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ This project is just my personal learning and development and maintenance. I do
| [PMPanel](https://github.com/ByteInternetHK/PMPanel) ||||
| [ProxyPanel](https://github.com/ProxyPanel/ProxyPanel) ||||
| [WHMCS (V2RaySocks)](https://v2raysocks.doxtex.com/) ||||
| [BunPanel](https://github.com/pennyMorant/bunpanel-release) ||||

## Software Installation

Expand Down
1 change: 1 addition & 0 deletions README-vi.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Dự án này chỉ là học tập và phát triển và bảo trì cá nhân c
| [PMPanel](https://github.com/ByteInternetHK/PMPanel) ||||
| [ProxyPanel](https://github.com/ProxyPanel/ProxyPanel) ||||
| [WHMCS (V2RaySocks)](https://v2raysocks.doxtex.com/) ||||
| [BunPanel](https://github.com/pennyMorant/bunpanel-release) ||||

## Cài đặt phần mềm

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ A Xray backend framework that can easily support many panels.
| [PMPanel](https://github.com/ByteInternetHK/PMPanel) ||||
| [ProxyPanel](https://github.com/ProxyPanel/ProxyPanel) ||||
| [WHMCS (V2RaySocks)](https://v2raysocks.doxtex.com/) ||||
| [GoV2Panel](https://github.com/pingProMax/gov2panel) ||||
| [BunPanel](https://github.com/pennyMorant/bunpanel-release) ||||

## 软件安装

Expand Down
1 change: 1 addition & 0 deletions README_Fa.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
| [PMPanel](https://github.com/ByteInternetHK/PMPanel) ||||
| [ProxyPanel](https://github.com/ProxyPanel/ProxyPanel) ||||
| [WHMCS (V2RaySocks)](https://v2raysocks.doxtex.com/) ||||
| [BunPanel](https://github.com/pennyMorant/bunpanel-release) ||||

## نصب نرم افزار

Expand Down
35 changes: 22 additions & 13 deletions api/apimodel.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,20 @@ type NodeInfo struct {
ServiceName string
Header json.RawMessage
NameServerConfig []*conf.NameServerConfig
EnableREALITY bool
REALITYConfig *REALITYConfig
}

type UserInfo struct {
UID int
Email string
Passwd string
Port uint32
Method string
SpeedLimit uint64 // Bps
DeviceLimit int
Protocol string
ProtocolParam string
Obfs string
ObfsParam string
UUID string
AlterID uint16
UID int
Email string
UUID string
Passwd string
Port uint32
AlterID uint16
Method string
SpeedLimit uint64 // Bps
DeviceLimit int
}

type OnlineUser struct {
Expand Down Expand Up @@ -100,3 +98,14 @@ type DetectResult struct {
UID int
RuleID int
}

type REALITYConfig struct {
Dest string
ProxyProtocolVer uint64
ServerNames []string
PrivateKey string
MinClientVer string
MaxClientVer string
MaxTimeDiff uint64
ShortIds []string
}
Loading

0 comments on commit 304387b

Please sign in to comment.