This commit is contained in:
RPRX 2020-12-04 09:36:16 +08:00
parent ed8d6d743c
commit 16544c18ab
627 changed files with 3247 additions and 2635 deletions

View file

@ -6,11 +6,11 @@ import (
"os/exec"
"strings"
"github.com/xtls/xray-core/v1/common/buf"
"github.com/xtls/xray-core/v1/common/platform"
"github.com/xtls/xray-core/common/buf"
"github.com/xtls/xray-core/common/platform"
)
//go:generate go run github.com/xtls/xray-core/v1/common/errors/errorgen
//go:generate go run github.com/xtls/xray-core/common/errors/errorgen
func Run(args []string, input io.Reader) (buf.MultiBuffer, error) {
xctl := platform.GetToolLocation("xctl")

View file

@ -1,6 +1,6 @@
package ctlcmd
import "github.com/xtls/xray-core/v1/common/errors"
import "github.com/xtls/xray-core/common/errors"
type errPathObjHolder struct{}

View file

@ -4,8 +4,8 @@ import (
"io"
"os"
"github.com/xtls/xray-core/v1/common/buf"
"github.com/xtls/xray-core/v1/common/platform"
"github.com/xtls/xray-core/common/buf"
"github.com/xtls/xray-core/common/platform"
)
type FileReaderFunc func(path string) (io.ReadCloser, error)

View file

@ -1,4 +1,4 @@
package platform // import "github.com/xtls/xray-core/v1/common/platform"
package platform // import "github.com/xtls/xray-core/common/platform"
import (
"os"

View file

@ -6,8 +6,8 @@ import (
"runtime"
"testing"
"github.com/xtls/xray-core/v1/common"
. "github.com/xtls/xray-core/v1/common/platform"
"github.com/xtls/xray-core/common"
. "github.com/xtls/xray-core/common/platform"
)
func TestNormalizeEnvName(t *testing.T) {