mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-14 20:39:36 +03:00
v1.0.0
This commit is contained in:
39
core/core.go
Normal file
39
core/core.go
Normal file
@ -0,0 +1,39 @@
|
||||
// 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
|
||||
|
||||
//go:generate go run github.com/xtls/xray-core/v1/common/errors/errorgen
|
||||
|
||||
import (
|
||||
"runtime"
|
||||
|
||||
"github.com/xtls/xray-core/v1/common/serial"
|
||||
)
|
||||
|
||||
var (
|
||||
version = "1.0.0"
|
||||
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 version
|
||||
}
|
||||
|
||||
// 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,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user