mirror of
				https://github.com/optim-enterprises-bv/Xray-core.git
				synced 2025-10-30 18:18:04 +00:00 
			
		
		
		
	 be43f66b63
			
		
	
	be43f66b63
	
	
	
		
			
			Announcement of NFTs by Project X: https://github.com/XTLS/Xray-core/discussions/3633 Project X NFT: https://opensea.io/assets/ethereum/0x5ee362866001613093361eb8569d59c4141b76d1/1 XHTTP: Beyond REALITY: https://github.com/XTLS/Xray-core/discussions/4113 REALITY NFT: https://opensea.io/assets/ethereum/0x5ee362866001613093361eb8569d59c4141b76d1/2
		
			
				
	
	
		
			44 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Package core provides an entry point to use Xray core functionalities.
 | |
| //
 | |
| // Xray makes it possible to accept incoming network connections with certain
 | |
| // protocol, process the data, and send them through another connection with
 | |
| // the same or a difference protocol on demand.
 | |
| //
 | |
| // It may be configured to work with multiple protocols at the same time, and
 | |
| // uses the internal router to tunnel through different inbound and outbound
 | |
| // connections.
 | |
| package core
 | |
| 
 | |
| import (
 | |
| 	"fmt"
 | |
| 	"runtime"
 | |
| 
 | |
| 	"github.com/xtls/xray-core/common/serial"
 | |
| )
 | |
| 
 | |
| var (
 | |
| 	Version_x byte = 25
 | |
| 	Version_y byte = 2
 | |
| 	Version_z byte = 21
 | |
| )
 | |
| 
 | |
| var (
 | |
| 	build    = "Custom"
 | |
| 	codename = "Xray, Penetrates Everything."
 | |
| 	intro    = "A unified platform for anti-censorship."
 | |
| )
 | |
| 
 | |
| // Version returns Xray's version as a string, in the form of "x.y.z" where x, y and z are numbers.
 | |
| // ".z" part may be omitted in regular releases.
 | |
| func Version() string {
 | |
| 	return fmt.Sprintf("%v.%v.%v", Version_x, Version_y, Version_z)
 | |
| }
 | |
| 
 | |
| // VersionStatement returns a list of strings representing the full version info.
 | |
| func VersionStatement() []string {
 | |
| 	return []string{
 | |
| 		serial.Concat("Xray ", Version(), " (", codename, ") ", build, " (", runtime.Version(), " ", runtime.GOOS, "/", runtime.GOARCH, ")"),
 | |
| 		intro,
 | |
| 	}
 | |
| }
 |