2020-11-25 13:01:53 +02:00
|
|
|
package all
|
|
|
|
|
|
|
|
import (
|
|
|
|
// The following are necessary as they register handlers in their init functions.
|
|
|
|
|
|
|
|
// Required features. Can't remove unless there is replacements.
|
2020-12-04 03:36:16 +02:00
|
|
|
_ "github.com/xtls/xray-core/app/dispatcher"
|
|
|
|
_ "github.com/xtls/xray-core/app/proxyman/inbound"
|
|
|
|
_ "github.com/xtls/xray-core/app/proxyman/outbound"
|
2020-11-25 13:01:53 +02:00
|
|
|
|
|
|
|
// Default commander and all its services. This is an optional feature.
|
2020-12-04 03:36:16 +02:00
|
|
|
_ "github.com/xtls/xray-core/app/commander"
|
|
|
|
_ "github.com/xtls/xray-core/app/log/command"
|
|
|
|
_ "github.com/xtls/xray-core/app/proxyman/command"
|
|
|
|
_ "github.com/xtls/xray-core/app/stats/command"
|
2020-11-25 13:01:53 +02:00
|
|
|
|
|
|
|
// Other optional features.
|
2020-12-04 03:36:16 +02:00
|
|
|
_ "github.com/xtls/xray-core/app/dns"
|
|
|
|
_ "github.com/xtls/xray-core/app/log"
|
|
|
|
_ "github.com/xtls/xray-core/app/policy"
|
|
|
|
_ "github.com/xtls/xray-core/app/reverse"
|
|
|
|
_ "github.com/xtls/xray-core/app/router"
|
|
|
|
_ "github.com/xtls/xray-core/app/stats"
|
2020-11-25 13:01:53 +02:00
|
|
|
|
|
|
|
// Inbound and outbound proxies.
|
2020-12-04 03:36:16 +02:00
|
|
|
_ "github.com/xtls/xray-core/proxy/blackhole"
|
|
|
|
_ "github.com/xtls/xray-core/proxy/dns"
|
|
|
|
_ "github.com/xtls/xray-core/proxy/dokodemo"
|
|
|
|
_ "github.com/xtls/xray-core/proxy/freedom"
|
|
|
|
_ "github.com/xtls/xray-core/proxy/http"
|
|
|
|
_ "github.com/xtls/xray-core/proxy/mtproto"
|
|
|
|
_ "github.com/xtls/xray-core/proxy/shadowsocks"
|
|
|
|
_ "github.com/xtls/xray-core/proxy/socks"
|
|
|
|
_ "github.com/xtls/xray-core/proxy/trojan"
|
|
|
|
_ "github.com/xtls/xray-core/proxy/vless/inbound"
|
|
|
|
_ "github.com/xtls/xray-core/proxy/vless/outbound"
|
|
|
|
_ "github.com/xtls/xray-core/proxy/vmess/inbound"
|
|
|
|
_ "github.com/xtls/xray-core/proxy/vmess/outbound"
|
2020-11-25 13:01:53 +02:00
|
|
|
|
|
|
|
// Transports
|
2020-12-04 03:36:16 +02:00
|
|
|
_ "github.com/xtls/xray-core/transport/internet/domainsocket"
|
|
|
|
_ "github.com/xtls/xray-core/transport/internet/http"
|
|
|
|
_ "github.com/xtls/xray-core/transport/internet/kcp"
|
|
|
|
_ "github.com/xtls/xray-core/transport/internet/quic"
|
|
|
|
_ "github.com/xtls/xray-core/transport/internet/tcp"
|
|
|
|
_ "github.com/xtls/xray-core/transport/internet/tls"
|
|
|
|
_ "github.com/xtls/xray-core/transport/internet/udp"
|
|
|
|
_ "github.com/xtls/xray-core/transport/internet/websocket"
|
|
|
|
_ "github.com/xtls/xray-core/transport/internet/xtls"
|
2020-11-25 13:01:53 +02:00
|
|
|
|
|
|
|
// Transport headers
|
2020-12-04 03:36:16 +02:00
|
|
|
_ "github.com/xtls/xray-core/transport/internet/headers/http"
|
|
|
|
_ "github.com/xtls/xray-core/transport/internet/headers/noop"
|
|
|
|
_ "github.com/xtls/xray-core/transport/internet/headers/srtp"
|
|
|
|
_ "github.com/xtls/xray-core/transport/internet/headers/tls"
|
|
|
|
_ "github.com/xtls/xray-core/transport/internet/headers/utp"
|
|
|
|
_ "github.com/xtls/xray-core/transport/internet/headers/wechat"
|
|
|
|
_ "github.com/xtls/xray-core/transport/internet/headers/wireguard"
|
2020-11-25 13:01:53 +02:00
|
|
|
|
|
|
|
// JSON config support. Choose only one from the two below.
|
|
|
|
// The following line loads JSON from xctl
|
2020-12-04 03:36:16 +02:00
|
|
|
// _ "github.com/xtls/xray-core/main/json"
|
2020-11-25 13:01:53 +02:00
|
|
|
// The following line loads JSON internally
|
2020-12-04 03:36:16 +02:00
|
|
|
_ "github.com/xtls/xray-core/main/jsonem"
|
2020-11-25 13:01:53 +02:00
|
|
|
|
|
|
|
// Load config from file or http(s)
|
2020-12-04 03:36:16 +02:00
|
|
|
_ "github.com/xtls/xray-core/main/confloader/external"
|
2020-11-25 13:01:53 +02:00
|
|
|
|
|
|
|
// commands
|
2020-12-04 03:36:16 +02:00
|
|
|
_ "github.com/xtls/xray-core/main/commands/all"
|
2020-11-25 13:01:53 +02:00
|
|
|
)
|