xray-core

module
v0.0.0-...-26e4700 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2025 License: MPL-2.0

README

Xray Mod

GitHub Release License

Description

A comprehensive project supporting JSON-based configurations with added expiration functionality. Designed with flexibility, security, and simplicity in mind. Contributions and modifications are welcome!

Features

  • Expiration Date Support:
    • Utilize the expired field in JSON with the format YYYY-MM-DD to manage resource validity.
  • Modular and extendable codebase.
  • Open source and community-driven.

Installation 1

  1. Clone the repository:

    git clone https://github.com/DindaPutriFN/Xray-core.git
    
  2. Navigate to the project directory:

    cd Xray-core
    
  3. Install dependencies (if any):

    sudo make
    
  4. Run the project:

    sudp make install
    

or

Installation 2

  1. Get Source core mod:

    apt update
    apt install git -y
    apt install golang-go -y
    apt install go -y
    apt install binutils -y
    git clone https://github.com/DindaPutriFN/Xray-core
    
  2. Build & Usage core mod:

    cd Xray-core
    go mod tidy
    go build -o xray ./main
    ./xray --help
    

Usage

  1. Configure the config.json file with your desired settings:

    {
     "id": "96163240-c575-4811-81b4-8fee7a7f1aff",
     "email": "example",
     "expired": "2025-01-11"
    }
    
  2. Run the project and monitor logs for activity.

Contributing

We welcome contributions from the community. To contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b main).
  3. Commit your changes (git commit -m 'Add feature').
  4. Push to the branch (git push origin feature-name).
  5. Create a pull request.

Credits

License

This project is licensed under the MPL-2.0 License - see the LICENSE file for details.

Contact

For support or inquiries, please contact:

Donations

If you find this project helpful and would like to support its development, consider donating:

  • QRIS ID: QRIS ID
  • Cryptocurrency:
    • Ethereum (ETH BEP20): 0x746C1ea43dc12FDEf0C8e2ddc927cb5eA767eB24

We hope this project is helpful for your use case. If you like this project, please give it a ⭐ on GitHub!

Directories

Path Synopsis
app
Package app contains feature implementations of Xray.
Package app contains feature implementations of Xray.
dns
Package dns is an implementation of core.DNS feature.
Package dns is an implementation of core.DNS feature.
log
policy
Package policy is an implementation of policy.Manager feature.
Package policy is an implementation of policy.Manager feature.
Package common contains common utilities that are shared among other packages.
Package common contains common utilities that are shared among other packages.
buf
Package buf provides a light-weight memory allocation mechanism.
Package buf provides a light-weight memory allocation mechanism.
crypto
Package crypto provides common crypto libraries for Xray.
Package crypto provides common crypto libraries for Xray.
ctx
dice
Package dice contains common functions to generate random number.
Package dice contains common functions to generate random number.
errors
Package errors is a drop-in replacement for Golang lib 'errors'.
Package errors is a drop-in replacement for Golang lib 'errors'.
log
mux
net
Package net is a drop-in replacement to Golang's net package, with some more functionalities.
Package net is a drop-in replacement to Golang's net package, with some more functionalities.
session
Package session provides functions for sessions of incoming requests.
Package session provides functions for sessions of incoming requests.
Package core provides an entry point to use Xray core functionalities.
Package core provides an entry point to use Xray core functionalities.
dns
infra
commands/base
Package base defines shared basic pieces of the commands, in particular logging and the Command structure.
Package base defines shared basic pieces of the commands, in particular logging and the Command structure.
Package proxy contains all proxies used by Xray.
Package proxy contains all proxies used by Xray.
blackhole
Package blackhole is an outbound handler that blocks all connections.
Package blackhole is an outbound handler that blocks all connections.
dns
shadowsocks
Package shadowsocks provides compatible functionality to Shadowsocks.
Package shadowsocks provides compatible functionality to Shadowsocks.
socks
Package socks provides implements of Socks protocol 4, 4a and 5.
Package socks provides implements of Socks protocol 4, 4a and 5.
vless
Package vless contains the implementation of VLess protocol and transportation.
Package vless contains the implementation of VLess protocol and transportation.
vmess
Package vmess contains the implementation of VMess protocol and transportation.
Package vmess contains the implementation of VMess protocol and transportation.
testing
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
internet/kcp
Package kcp - A Fast and Reliable ARQ Protocol
Package kcp - A Fast and Reliable ARQ Protocol
internet/websocket
Package websocket implements WebSocket transport
Package websocket implements WebSocket transport

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳