More complete freebsd change

This commit is contained in:
kjake 2025-01-20 13:36:21 -05:00
parent 7c6405b158
commit 32a5ba9418
165 changed files with 414 additions and 415 deletions

View File

@ -33,8 +33,8 @@ export PATH="$PATH:/usr/local/bin"
FILENAME="$(pwd)/artifacts/cloudflared-darwin-$TARGET_ARCH.tgz"
PKGNAME="$(pwd)/artifacts/cloudflared-$TARGET_ARCH.pkg"
mkdir -p ../src/github.com/cloudflare/
cp -r . ../src/github.com/cloudflare/cloudflared
cd ../src/github.com/cloudflare/cloudflared
cp -r . ../src/github.com/kjake/cloudflared
cd ../src/github.com/kjake/cloudflared
# Imports certificates to the Apple KeyChain
import_certificate() {

View File

@ -6,12 +6,12 @@ ENV GO111MODULE=on \
CGO_ENABLED=0 \
TARGET_GOOS=${TARGET_GOOS} \
TARGET_GOARCH=${TARGET_GOARCH} \
# the CONTAINER_BUILD envvar is used set github.com/cloudflare/cloudflared/metrics.Runtime=virtual
# the CONTAINER_BUILD envvar is used set github.com/kjake/cloudflared/metrics.Runtime=virtual
# which changes how cloudflared binds the metrics server
CONTAINER_BUILD=1
WORKDIR /go/src/github.com/cloudflare/cloudflared/
WORKDIR /go/src/github.com/kjake/cloudflared/
# copy our sources into the builder image
COPY . .
@ -24,10 +24,10 @@ RUN PATH="/tmp/go/bin:$PATH" make cloudflared
# use a distroless base image with glibc
FROM gcr.io/distroless/base-debian11:nonroot
LABEL org.opencontainers.image.source="https://github.com/cloudflare/cloudflared"
LABEL org.opencontainers.image.source="https://github.com/kjake/cloudflared"
# copy our compiled binary
COPY --from=builder --chown=nonroot /go/src/github.com/cloudflare/cloudflared/cloudflared /usr/local/bin/
COPY --from=builder --chown=nonroot /go/src/github.com/kjake/cloudflared/cloudflared /usr/local/bin/
# run as non-privileged user
USER nonroot

View File

@ -2,11 +2,11 @@
FROM golang:1.22.5 as builder
ENV GO111MODULE=on \
CGO_ENABLED=0 \
# the CONTAINER_BUILD envvar is used set github.com/cloudflare/cloudflared/metrics.Runtime=virtual
# the CONTAINER_BUILD envvar is used set github.com/kjake/cloudflared/metrics.Runtime=virtual
# which changes how cloudflared binds the metrics server
CONTAINER_BUILD=1
WORKDIR /go/src/github.com/cloudflare/cloudflared/
WORKDIR /go/src/github.com/kjake/cloudflared/
# copy our sources into the builder image
COPY . .
@ -19,10 +19,10 @@ RUN GOOS=linux GOARCH=amd64 PATH="/tmp/go/bin:$PATH" make cloudflared
# use a distroless base image with glibc
FROM gcr.io/distroless/base-debian11:nonroot
LABEL org.opencontainers.image.source="https://github.com/cloudflare/cloudflared"
LABEL org.opencontainers.image.source="https://github.com/kjake/cloudflared"
# copy our compiled binary
COPY --from=builder --chown=nonroot /go/src/github.com/cloudflare/cloudflared/cloudflared /usr/local/bin/
COPY --from=builder --chown=nonroot /go/src/github.com/kjake/cloudflared/cloudflared /usr/local/bin/
# run as non-privileged user
USER nonroot

View File

@ -2,11 +2,11 @@
FROM golang:1.22.5 as builder
ENV GO111MODULE=on \
CGO_ENABLED=0 \
# the CONTAINER_BUILD envvar is used set github.com/cloudflare/cloudflared/metrics.Runtime=virtual
# the CONTAINER_BUILD envvar is used set github.com/kjake/cloudflared/metrics.Runtime=virtual
# which changes how cloudflared binds the metrics server
CONTAINER_BUILD=1
WORKDIR /go/src/github.com/cloudflare/cloudflared/
WORKDIR /go/src/github.com/kjake/cloudflared/
# copy our sources into the builder image
COPY . .
@ -19,10 +19,10 @@ RUN GOOS=linux GOARCH=arm64 PATH="/tmp/go/bin:$PATH" make cloudflared
# use a distroless base image with glibc
FROM gcr.io/distroless/base-debian11:nonroot-arm64
LABEL org.opencontainers.image.source="https://github.com/cloudflare/cloudflared"
LABEL org.opencontainers.image.source="https://github.com/kjake/cloudflared"
# copy our compiled binary
COPY --from=builder --chown=nonroot /go/src/github.com/cloudflare/cloudflared/cloudflared /usr/local/bin/
COPY --from=builder --chown=nonroot /go/src/github.com/kjake/cloudflared/cloudflared /usr/local/bin/
# run as non-privileged user
USER nonroot

View File

@ -27,11 +27,11 @@ endif
DATE := $(shell date -u '+%Y-%m-%d-%H%M UTC')
VERSION_FLAGS := -X "main.Version=$(VERSION)" -X "main.BuildTime=$(DATE)"
ifdef PACKAGE_MANAGER
VERSION_FLAGS := $(VERSION_FLAGS) -X "github.com/cloudflare/cloudflared/cmd/cloudflared/updater.BuiltForPackageManager=$(PACKAGE_MANAGER)"
VERSION_FLAGS := $(VERSION_FLAGS) -X "github.com/kjake/cloudflared/cmd/cloudflared/updater.BuiltForPackageManager=$(PACKAGE_MANAGER)"
endif
ifdef CONTAINER_BUILD
VERSION_FLAGS := $(VERSION_FLAGS) -X "github.com/cloudflare/cloudflared/metrics.Runtime=virtual"
VERSION_FLAGS := $(VERSION_FLAGS) -X "github.com/kjake/cloudflared/metrics.Runtime=virtual"
endif
LINK_FLAGS :=
@ -51,7 +51,7 @@ ifeq ($(debug), 1)
GO_BUILD_TAGS += -gcflags="all=-N -l"
endif
IMPORT_PATH := github.com/cloudflare/cloudflared
IMPORT_PATH := github.com/kjake/cloudflared
PACKAGE_DIR := $(CURDIR)/packaging
PREFIX := /usr
INSTALL_BINDIR := $(PREFIX)/bin/
@ -208,7 +208,7 @@ define build_package
--description 'Cloudflare Tunnel daemon' \
--vendor 'Cloudflare' \
--license 'Apache License Version 2.0' \
--url 'https://github.com/cloudflare/cloudflared' \
--url 'https://github.com/kjake/cloudflared' \
-m 'Cloudflare <support@cloudflare.com>' \
-a $(PACKAGE_ARCH) -v $(VERSION) -n $(DEB_PACKAGE_NAME) $(RPM_DIGEST) $(NIGHTLY_FLAGS) --after-install postinst.sh --after-remove postrm.sh \
cloudflared=$(INSTALL_BINDIR) cloudflared.1=$(INSTALL_MANDIR)
@ -251,11 +251,11 @@ capnp:
.PHONY: vet
vet:
go vet -mod=vendor github.com/cloudflare/cloudflared/...
go vet -mod=vendor github.com/kjake/cloudflared/...
.PHONY: fmt
fmt:
@goimports -l -w -local github.com/cloudflare/cloudflared $$(go list -mod=vendor -f '{{.Dir}}' -a ./... | fgrep -v tunnelrpc/proto)
@goimports -l -w -local github.com/kjake/cloudflared $$(go list -mod=vendor -f '{{.Dir}}' -a ./... | fgrep -v tunnelrpc/proto)
@go fmt $$(go list -mod=vendor -f '{{.Dir}}' -a ./... | fgrep -v tunnelrpc/proto)
.PHONY: fmt-check

View File

@ -16,7 +16,7 @@ import (
"github.com/pkg/errors"
"github.com/rs/zerolog"
"github.com/cloudflare/cloudflared/token"
"github.com/kjake/cloudflared/token"
)
const (

View File

@ -9,9 +9,9 @@ import (
"github.com/gorilla/websocket"
"github.com/rs/zerolog"
"github.com/cloudflare/cloudflared/stream"
"github.com/cloudflare/cloudflared/token"
cfwebsocket "github.com/cloudflare/cloudflared/websocket"
"github.com/kjake/cloudflared/stream"
"github.com/kjake/cloudflared/token"
cfwebsocket "github.com/kjake/cloudflared/websocket"
)
// Websocket is used to carry data via WS binary frames over the tunnel from client to the origin

View File

@ -15,9 +15,9 @@ import (
"github.com/stretchr/testify/require"
"golang.org/x/net/websocket"
"github.com/cloudflare/cloudflared/hello"
"github.com/cloudflare/cloudflared/tlsconfig"
cfwebsocket "github.com/cloudflare/cloudflared/websocket"
"github.com/kjake/cloudflared/hello"
"github.com/kjake/cloudflared/tlsconfig"
cfwebsocket "github.com/kjake/cloudflared/websocket"
)
func websocketClientTLSConfig(t *testing.T) *tls.Config {

View File

@ -11,11 +11,11 @@ import (
"github.com/rs/zerolog"
"github.com/urfave/cli/v2"
"github.com/cloudflare/cloudflared/carrier"
"github.com/cloudflare/cloudflared/config"
"github.com/cloudflare/cloudflared/logger"
"github.com/cloudflare/cloudflared/stream"
"github.com/cloudflare/cloudflared/validation"
"github.com/kjake/cloudflared/carrier"
"github.com/kjake/cloudflared/config"
"github.com/kjake/cloudflared/logger"
"github.com/kjake/cloudflared/stream"
"github.com/kjake/cloudflared/validation"
)
const (

View File

@ -17,12 +17,12 @@ import (
"github.com/urfave/cli/v2"
"golang.org/x/net/idna"
"github.com/cloudflare/cloudflared/carrier"
"github.com/cloudflare/cloudflared/cmd/cloudflared/cliutil"
"github.com/cloudflare/cloudflared/logger"
"github.com/cloudflare/cloudflared/sshgen"
"github.com/cloudflare/cloudflared/token"
"github.com/cloudflare/cloudflared/validation"
"github.com/kjake/cloudflared/carrier"
"github.com/kjake/cloudflared/cmd/cloudflared/cliutil"
"github.com/kjake/cloudflared/logger"
"github.com/kjake/cloudflared/sshgen"
"github.com/kjake/cloudflared/token"
"github.com/kjake/cloudflared/validation"
)
const (

View File

@ -3,8 +3,8 @@ package main
import (
"github.com/rs/zerolog"
"github.com/cloudflare/cloudflared/cmd/cloudflared/access"
"github.com/cloudflare/cloudflared/config"
"github.com/kjake/cloudflared/cmd/cloudflared/access"
"github.com/kjake/cloudflared/config"
)
// ForwardServiceType is used to identify what kind of overwatch service this is

View File

@ -3,8 +3,8 @@ package main
import (
"github.com/rs/zerolog"
"github.com/cloudflare/cloudflared/config"
"github.com/cloudflare/cloudflared/tunneldns"
"github.com/kjake/cloudflared/config"
"github.com/kjake/cloudflared/tunneldns"
)
const (

View File

@ -3,8 +3,8 @@ package main
import (
"github.com/rs/zerolog"
"github.com/cloudflare/cloudflared/config"
"github.com/cloudflare/cloudflared/overwatch"
"github.com/kjake/cloudflared/config"
"github.com/kjake/cloudflared/overwatch"
)
// AppService is the main service that runs when no command lines flags are passed to cloudflared

View File

@ -4,8 +4,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/urfave/cli/v2/altsrc"
"github.com/cloudflare/cloudflared/config"
"github.com/cloudflare/cloudflared/logger"
"github.com/kjake/cloudflared/config"
"github.com/kjake/cloudflared/logger"
)
func Action(actionFunc cli.ActionFunc) cli.ActionFunc {

View File

@ -4,7 +4,7 @@ import (
"github.com/urfave/cli/v2"
"github.com/urfave/cli/v2/altsrc"
"github.com/cloudflare/cloudflared/logger"
"github.com/kjake/cloudflared/logger"
)
var (

View File

@ -4,8 +4,8 @@ import (
"github.com/rs/zerolog"
"github.com/urfave/cli/v2"
"github.com/cloudflare/cloudflared/cmd/cloudflared/cliutil"
"github.com/cloudflare/cloudflared/cmd/cloudflared/tunnel"
"github.com/kjake/cloudflared/cmd/cloudflared/cliutil"
"github.com/kjake/cloudflared/cmd/cloudflared/tunnel"
)
func buildArgsForToken(c *cli.Context, log *zerolog.Logger) ([]string, error) {

View File

@ -9,10 +9,10 @@ import (
"github.com/rs/zerolog"
"github.com/urfave/cli/v2"
"github.com/cloudflare/cloudflared/cmd/cloudflared/cliutil"
"github.com/cloudflare/cloudflared/cmd/cloudflared/tunnel"
"github.com/cloudflare/cloudflared/config"
"github.com/cloudflare/cloudflared/logger"
"github.com/kjake/cloudflared/cmd/cloudflared/cliutil"
"github.com/kjake/cloudflared/cmd/cloudflared/tunnel"
"github.com/kjake/cloudflared/config"
"github.com/kjake/cloudflared/logger"
)
func runApp(app *cli.App, graceShutdownC chan struct{}) {

View File

@ -9,8 +9,8 @@ import (
"github.com/pkg/errors"
"github.com/urfave/cli/v2"
"github.com/cloudflare/cloudflared/cmd/cloudflared/cliutil"
"github.com/cloudflare/cloudflared/logger"
"github.com/kjake/cloudflared/cmd/cloudflared/cliutil"
"github.com/kjake/cloudflared/logger"
)
const (

View File

@ -13,19 +13,19 @@ import (
"github.com/urfave/cli/v2"
"go.uber.org/automaxprocs/maxprocs"
"github.com/cloudflare/cloudflared/cmd/cloudflared/access"
"github.com/cloudflare/cloudflared/cmd/cloudflared/cliutil"
"github.com/cloudflare/cloudflared/cmd/cloudflared/proxydns"
"github.com/cloudflare/cloudflared/cmd/cloudflared/tail"
"github.com/cloudflare/cloudflared/cmd/cloudflared/tunnel"
"github.com/cloudflare/cloudflared/cmd/cloudflared/updater"
"github.com/cloudflare/cloudflared/config"
"github.com/cloudflare/cloudflared/logger"
"github.com/cloudflare/cloudflared/metrics"
"github.com/cloudflare/cloudflared/overwatch"
"github.com/cloudflare/cloudflared/token"
"github.com/cloudflare/cloudflared/tracing"
"github.com/cloudflare/cloudflared/watcher"
"github.com/kjake/cloudflared/cmd/cloudflared/access"
"github.com/kjake/cloudflared/cmd/cloudflared/cliutil"
"github.com/kjake/cloudflared/cmd/cloudflared/proxydns"
"github.com/kjake/cloudflared/cmd/cloudflared/tail"
"github.com/kjake/cloudflared/cmd/cloudflared/tunnel"
"github.com/kjake/cloudflared/cmd/cloudflared/updater"
"github.com/kjake/cloudflared/config"
"github.com/kjake/cloudflared/logger"
"github.com/kjake/cloudflared/metrics"
"github.com/kjake/cloudflared/overwatch"
"github.com/kjake/cloudflared/token"
"github.com/kjake/cloudflared/tracing"
"github.com/kjake/cloudflared/watcher"
)
const (

View File

@ -9,10 +9,10 @@ import (
"github.com/urfave/cli/v2"
"github.com/cloudflare/cloudflared/cmd/cloudflared/cliutil"
"github.com/cloudflare/cloudflared/logger"
"github.com/cloudflare/cloudflared/metrics"
"github.com/cloudflare/cloudflared/tunneldns"
"github.com/kjake/cloudflared/cmd/cloudflared/cliutil"
"github.com/kjake/cloudflared/logger"
"github.com/kjake/cloudflared/metrics"
"github.com/kjake/cloudflared/tunneldns"
)
func Command(hidden bool) *cli.Command {

View File

@ -12,7 +12,7 @@ import (
homedir "github.com/mitchellh/go-homedir"
"github.com/cloudflare/cloudflared/config"
"github.com/kjake/cloudflared/config"
)
type ServiceTemplate struct {

View File

@ -17,10 +17,10 @@ import (
"github.com/urfave/cli/v2"
"nhooyr.io/websocket"
"github.com/cloudflare/cloudflared/cmd/cloudflared/cliutil"
"github.com/cloudflare/cloudflared/credentials"
"github.com/cloudflare/cloudflared/logger"
"github.com/cloudflare/cloudflared/management"
"github.com/kjake/cloudflared/cmd/cloudflared/cliutil"
"github.com/kjake/cloudflared/credentials"
"github.com/kjake/cloudflared/logger"
"github.com/kjake/cloudflared/management"
)
var (

View File

@ -22,26 +22,26 @@ import (
"github.com/urfave/cli/v2"
"github.com/urfave/cli/v2/altsrc"
"github.com/cloudflare/cloudflared/cfapi"
"github.com/cloudflare/cloudflared/cmd/cloudflared/cliutil"
"github.com/cloudflare/cloudflared/cmd/cloudflared/proxydns"
"github.com/cloudflare/cloudflared/cmd/cloudflared/updater"
"github.com/cloudflare/cloudflared/config"
"github.com/cloudflare/cloudflared/connection"
"github.com/cloudflare/cloudflared/credentials"
"github.com/cloudflare/cloudflared/diagnostic"
"github.com/cloudflare/cloudflared/edgediscovery"
"github.com/cloudflare/cloudflared/ingress"
"github.com/cloudflare/cloudflared/logger"
"github.com/cloudflare/cloudflared/management"
"github.com/cloudflare/cloudflared/metrics"
"github.com/cloudflare/cloudflared/orchestration"
"github.com/cloudflare/cloudflared/signal"
"github.com/cloudflare/cloudflared/supervisor"
"github.com/cloudflare/cloudflared/tlsconfig"
"github.com/cloudflare/cloudflared/tunneldns"
"github.com/cloudflare/cloudflared/tunnelstate"
"github.com/cloudflare/cloudflared/validation"
"github.com/kjake/cloudflared/cfapi"
"github.com/kjake/cloudflared/cmd/cloudflared/cliutil"
"github.com/kjake/cloudflared/cmd/cloudflared/proxydns"
"github.com/kjake/cloudflared/cmd/cloudflared/updater"
"github.com/kjake/cloudflared/config"
"github.com/kjake/cloudflared/connection"
"github.com/kjake/cloudflared/credentials"
"github.com/kjake/cloudflared/diagnostic"
"github.com/kjake/cloudflared/edgediscovery"
"github.com/kjake/cloudflared/ingress"
"github.com/kjake/cloudflared/logger"
"github.com/kjake/cloudflared/management"
"github.com/kjake/cloudflared/metrics"
"github.com/kjake/cloudflared/orchestration"
"github.com/kjake/cloudflared/signal"
"github.com/kjake/cloudflared/supervisor"
"github.com/kjake/cloudflared/tlsconfig"
"github.com/kjake/cloudflared/tunneldns"
"github.com/kjake/cloudflared/tunnelstate"
"github.com/kjake/cloudflared/validation"
)
const (

View File

@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/cloudflare/cloudflared/features"
"github.com/kjake/cloudflared/features"
)
func TestDedup(t *testing.T) {

View File

@ -17,17 +17,17 @@ import (
"github.com/urfave/cli/v2/altsrc"
"golang.org/x/term"
"github.com/cloudflare/cloudflared/cmd/cloudflared/cliutil"
"github.com/cloudflare/cloudflared/config"
"github.com/cloudflare/cloudflared/connection"
"github.com/cloudflare/cloudflared/edgediscovery"
"github.com/cloudflare/cloudflared/edgediscovery/allregions"
"github.com/cloudflare/cloudflared/features"
"github.com/cloudflare/cloudflared/ingress"
"github.com/cloudflare/cloudflared/orchestration"
"github.com/cloudflare/cloudflared/supervisor"
"github.com/cloudflare/cloudflared/tlsconfig"
"github.com/cloudflare/cloudflared/tunnelrpc/pogs"
"github.com/kjake/cloudflared/cmd/cloudflared/cliutil"
"github.com/kjake/cloudflared/config"
"github.com/kjake/cloudflared/connection"
"github.com/kjake/cloudflared/edgediscovery"
"github.com/kjake/cloudflared/edgediscovery/allregions"
"github.com/kjake/cloudflared/features"
"github.com/kjake/cloudflared/ingress"
"github.com/kjake/cloudflared/orchestration"
"github.com/kjake/cloudflared/supervisor"
"github.com/kjake/cloudflared/tlsconfig"
"github.com/kjake/cloudflared/tunnelrpc/pogs"
)
const (

View File

@ -4,8 +4,8 @@ import (
"fmt"
"path/filepath"
"github.com/cloudflare/cloudflared/config"
"github.com/cloudflare/cloudflared/credentials"
"github.com/kjake/cloudflared/config"
"github.com/kjake/cloudflared/credentials"
"github.com/google/uuid"
"github.com/rs/zerolog"

View File

@ -5,7 +5,7 @@ import (
"github.com/google/uuid"
"github.com/cloudflare/cloudflared/cfapi"
"github.com/kjake/cloudflared/cfapi"
)
type Info struct {

View File

@ -5,9 +5,9 @@ import (
"fmt"
"net/url"
"github.com/cloudflare/cloudflared/cmd/cloudflared/cliutil"
"github.com/cloudflare/cloudflared/config"
"github.com/cloudflare/cloudflared/ingress"
"github.com/kjake/cloudflared/cmd/cloudflared/cliutil"
"github.com/kjake/cloudflared/config"
"github.com/kjake/cloudflared/ingress"
"github.com/pkg/errors"
"github.com/urfave/cli/v2"

View File

@ -11,11 +11,11 @@ import (
"github.com/pkg/errors"
"github.com/urfave/cli/v2"
"github.com/cloudflare/cloudflared/cmd/cloudflared/cliutil"
"github.com/cloudflare/cloudflared/config"
"github.com/cloudflare/cloudflared/credentials"
"github.com/cloudflare/cloudflared/logger"
"github.com/cloudflare/cloudflared/token"
"github.com/kjake/cloudflared/cmd/cloudflared/cliutil"
"github.com/kjake/cloudflared/config"
"github.com/kjake/cloudflared/credentials"
"github.com/kjake/cloudflared/logger"
"github.com/kjake/cloudflared/token"
)
const (

View File

@ -11,7 +11,7 @@ import (
"github.com/google/uuid"
"github.com/pkg/errors"
"github.com/cloudflare/cloudflared/connection"
"github.com/kjake/cloudflared/connection"
)
const httpTimeout = 15 * time.Second

View File

@ -3,7 +3,7 @@ package tunnel
import (
"fmt"
"github.com/cloudflare/cloudflared/tunneldns"
"github.com/kjake/cloudflared/tunneldns"
"github.com/pkg/errors"
"github.com/rs/zerolog"

View File

@ -13,10 +13,10 @@ import (
"github.com/rs/zerolog"
"github.com/urfave/cli/v2"
"github.com/cloudflare/cloudflared/cfapi"
"github.com/cloudflare/cloudflared/connection"
"github.com/cloudflare/cloudflared/credentials"
"github.com/cloudflare/cloudflared/logger"
"github.com/kjake/cloudflared/cfapi"
"github.com/kjake/cloudflared/connection"
"github.com/kjake/cloudflared/credentials"
"github.com/kjake/cloudflared/logger"
)
type errInvalidJSONCredential struct {

View File

@ -6,7 +6,7 @@ import (
"github.com/google/uuid"
"github.com/pkg/errors"
"github.com/cloudflare/cloudflared/cfapi"
"github.com/kjake/cloudflared/cfapi"
)
const noClientMsg = "error while creating backend client"

View File

@ -14,9 +14,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/urfave/cli/v2"
"github.com/cloudflare/cloudflared/cfapi"
"github.com/cloudflare/cloudflared/connection"
"github.com/cloudflare/cloudflared/credentials"
"github.com/kjake/cloudflared/cfapi"
"github.com/kjake/cloudflared/connection"
"github.com/kjake/cloudflared/credentials"
)
type mockFileSystem struct {

View File

@ -4,7 +4,7 @@ import (
"github.com/google/uuid"
"github.com/pkg/errors"
"github.com/cloudflare/cloudflared/cfapi"
"github.com/kjake/cloudflared/cfapi"
)
func (sc *subcommandContext) addVirtualNetwork(newVnet cfapi.NewVirtualNetwork) (cfapi.VirtualNetwork, error) {

View File

@ -23,13 +23,13 @@ import (
"golang.org/x/net/idna"
yaml "gopkg.in/yaml.v3"
"github.com/cloudflare/cloudflared/cfapi"
"github.com/cloudflare/cloudflared/cmd/cloudflared/cliutil"
"github.com/cloudflare/cloudflared/cmd/cloudflared/updater"
"github.com/cloudflare/cloudflared/config"
"github.com/cloudflare/cloudflared/connection"
"github.com/cloudflare/cloudflared/diagnostic"
"github.com/cloudflare/cloudflared/metrics"
"github.com/kjake/cloudflared/cfapi"
"github.com/kjake/cloudflared/cmd/cloudflared/cliutil"
"github.com/kjake/cloudflared/cmd/cloudflared/updater"
"github.com/kjake/cloudflared/config"
"github.com/kjake/cloudflared/connection"
"github.com/kjake/cloudflared/diagnostic"
"github.com/kjake/cloudflared/metrics"
)
const (

View File

@ -11,8 +11,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/cloudflare/cloudflared/cfapi"
"github.com/cloudflare/cloudflared/connection"
"github.com/kjake/cloudflared/cfapi"
"github.com/kjake/cloudflared/connection"
)
func Test_fmtConnections(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"fmt"
"regexp"
"github.com/cloudflare/cloudflared/tunnelrpc/pogs"
"github.com/kjake/cloudflared/tunnelrpc/pogs"
)
// Restrict key names to characters allowed in an HTTP header name.

View File

@ -3,7 +3,7 @@ package tunnel
import (
"testing"
"github.com/cloudflare/cloudflared/tunnelrpc/pogs"
"github.com/kjake/cloudflared/tunnelrpc/pogs"
"github.com/stretchr/testify/assert"
)

View File

@ -10,9 +10,9 @@ import (
"github.com/pkg/errors"
"github.com/urfave/cli/v2"
"github.com/cloudflare/cloudflared/cfapi"
"github.com/cloudflare/cloudflared/cmd/cloudflared/cliutil"
"github.com/cloudflare/cloudflared/cmd/cloudflared/updater"
"github.com/kjake/cloudflared/cfapi"
"github.com/kjake/cloudflared/cmd/cloudflared/cliutil"
"github.com/kjake/cloudflared/cmd/cloudflared/updater"
)
var (

View File

@ -9,9 +9,9 @@ import (
"github.com/pkg/errors"
"github.com/urfave/cli/v2"
"github.com/cloudflare/cloudflared/cfapi"
"github.com/cloudflare/cloudflared/cmd/cloudflared/cliutil"
"github.com/cloudflare/cloudflared/cmd/cloudflared/updater"
"github.com/kjake/cloudflared/cfapi"
"github.com/kjake/cloudflared/cmd/cloudflared/cliutil"
"github.com/kjake/cloudflared/cmd/cloudflared/updater"
)
var (

View File

@ -14,9 +14,9 @@ import (
"github.com/urfave/cli/v2"
"golang.org/x/term"
"github.com/cloudflare/cloudflared/cmd/cloudflared/cliutil"
"github.com/cloudflare/cloudflared/config"
"github.com/cloudflare/cloudflared/logger"
"github.com/kjake/cloudflared/cmd/cloudflared/cliutil"
"github.com/kjake/cloudflared/config"
"github.com/kjake/cloudflared/logger"
)
const (

View File

@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/urfave/cli/v2"
"github.com/cloudflare/cloudflared/cmd/cloudflared/cliutil"
"github.com/kjake/cloudflared/cmd/cloudflared/cliutil"
)
func init() {

View File

@ -18,7 +18,7 @@ import (
"github.com/getsentry/sentry-go"
"github.com/cloudflare/cloudflared/cmd/cloudflared/cliutil"
"github.com/kjake/cloudflared/cmd/cloudflared/cliutil"
)
const (

View File

@ -19,8 +19,8 @@ import (
"golang.org/x/sys/windows/svc/eventlog"
"golang.org/x/sys/windows/svc/mgr"
"github.com/cloudflare/cloudflared/cmd/cloudflared/cliutil"
"github.com/cloudflare/cloudflared/logger"
"github.com/kjake/cloudflared/cmd/cloudflared/cliutil"
"github.com/kjake/cloudflared/logger"
)
const (

View File

@ -17,7 +17,7 @@ import (
"github.com/urfave/cli/v2"
yaml "gopkg.in/yaml.v3"
"github.com/cloudflare/cloudflared/validation"
"github.com/kjake/cloudflared/validation"
)
var (

View File

@ -8,7 +8,7 @@ import (
"github.com/rs/zerolog"
yaml "gopkg.in/yaml.v3"
"github.com/cloudflare/cloudflared/watcher"
"github.com/kjake/cloudflared/watcher"
)
// Notifier sends out config updates

View File

@ -7,7 +7,7 @@ import (
"github.com/rs/zerolog"
"github.com/stretchr/testify/assert"
"github.com/cloudflare/cloudflared/watcher"
"github.com/kjake/cloudflared/watcher"
)
type mockNotifier struct {

View File

@ -6,7 +6,7 @@ import (
"io"
"strings"
"github.com/cloudflare/cloudflared/tunneldns"
"github.com/kjake/cloudflared/tunneldns"
)
// Forwarder represents a client side listener to forward traffic to the edge

View File

@ -15,9 +15,9 @@ import (
"github.com/google/uuid"
"github.com/pkg/errors"
"github.com/cloudflare/cloudflared/tracing"
"github.com/cloudflare/cloudflared/tunnelrpc/pogs"
"github.com/cloudflare/cloudflared/websocket"
"github.com/kjake/cloudflared/tracing"
"github.com/kjake/cloudflared/tunnelrpc/pogs"
"github.com/kjake/cloudflared/websocket"
)
const (

View File

@ -10,10 +10,10 @@ import (
"github.com/rs/zerolog"
"github.com/cloudflare/cloudflared/stream"
"github.com/cloudflare/cloudflared/tracing"
tunnelpogs "github.com/cloudflare/cloudflared/tunnelrpc/pogs"
"github.com/cloudflare/cloudflared/websocket"
"github.com/kjake/cloudflared/stream"
"github.com/kjake/cloudflared/tracing"
tunnelpogs "github.com/kjake/cloudflared/tunnelrpc/pogs"
"github.com/kjake/cloudflared/websocket"
)
const (
@ -120,7 +120,7 @@ func (ep *echoPipe) Write(p []byte) (int, error) {
}
// A mock origin that echos data by streaming like a tcpOverWSConnection
// https://github.com/cloudflare/cloudflared/blob/master/ingress/origin_connection.go
// https://github.com/kjake/cloudflared/blob/master/ingress/origin_connection.go
func wsEchoEndpoint(w ResponseWriter, r *http.Request) error {
resp := &http.Response{
StatusCode: http.StatusSwitchingProtocols,

View File

@ -8,9 +8,9 @@ import (
"github.com/pkg/errors"
"github.com/cloudflare/cloudflared/management"
"github.com/cloudflare/cloudflared/tunnelrpc"
tunnelpogs "github.com/cloudflare/cloudflared/tunnelrpc/pogs"
"github.com/kjake/cloudflared/management"
"github.com/kjake/cloudflared/tunnelrpc"
tunnelpogs "github.com/kjake/cloudflared/tunnelrpc/pogs"
)
// registerClient derives a named tunnel rpc client that can then be used to register and unregister connections.

View File

@ -1,8 +1,8 @@
package connection
import (
"github.com/cloudflare/cloudflared/edgediscovery"
tunnelpogs "github.com/cloudflare/cloudflared/tunnelrpc/pogs"
"github.com/kjake/cloudflared/edgediscovery"
tunnelpogs "github.com/kjake/cloudflared/tunnelrpc/pogs"
)
const (

View File

@ -16,8 +16,8 @@ import (
"github.com/rs/zerolog"
"golang.org/x/net/http2"
"github.com/cloudflare/cloudflared/tracing"
tunnelpogs "github.com/cloudflare/cloudflared/tunnelrpc/pogs"
"github.com/kjake/cloudflared/tracing"
tunnelpogs "github.com/kjake/cloudflared/tunnelrpc/pogs"
)
// note: these constants are exported so we can reuse them in the edge-side code

View File

@ -20,8 +20,8 @@ import (
"github.com/stretchr/testify/require"
"golang.org/x/net/http2"
"github.com/cloudflare/cloudflared/tunnelrpc"
"github.com/cloudflare/cloudflared/tunnelrpc/pogs"
"github.com/kjake/cloudflared/tunnelrpc"
"github.com/kjake/cloudflared/tunnelrpc/pogs"
)
var (

View File

@ -7,7 +7,7 @@ import (
"github.com/google/uuid"
"github.com/rs/zerolog"
"github.com/cloudflare/cloudflared/management"
"github.com/kjake/cloudflared/management"
)
const (

View File

@ -8,7 +8,7 @@ import (
"github.com/rs/zerolog"
"github.com/cloudflare/cloudflared/edgediscovery"
"github.com/kjake/cloudflared/edgediscovery"
)
const (

View File

@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/cloudflare/cloudflared/edgediscovery"
"github.com/kjake/cloudflared/edgediscovery"
)
const (

View File

@ -17,11 +17,11 @@ import (
"github.com/rs/zerolog"
"golang.org/x/sync/errgroup"
cfdquic "github.com/cloudflare/cloudflared/quic"
"github.com/cloudflare/cloudflared/tracing"
"github.com/cloudflare/cloudflared/tunnelrpc/pogs"
tunnelpogs "github.com/cloudflare/cloudflared/tunnelrpc/pogs"
rpcquic "github.com/cloudflare/cloudflared/tunnelrpc/quic"
cfdquic "github.com/kjake/cloudflared/quic"
"github.com/kjake/cloudflared/tracing"
"github.com/kjake/cloudflared/tunnelrpc/pogs"
tunnelpogs "github.com/kjake/cloudflared/tunnelrpc/pogs"
rpcquic "github.com/kjake/cloudflared/tunnelrpc/quic"
)
const (

View File

@ -28,13 +28,13 @@ import (
"github.com/stretchr/testify/require"
"golang.org/x/net/nettest"
"github.com/cloudflare/cloudflared/datagramsession"
"github.com/cloudflare/cloudflared/ingress"
"github.com/cloudflare/cloudflared/packet"
cfdquic "github.com/cloudflare/cloudflared/quic"
"github.com/cloudflare/cloudflared/tracing"
"github.com/cloudflare/cloudflared/tunnelrpc/pogs"
rpcquic "github.com/cloudflare/cloudflared/tunnelrpc/quic"
"github.com/kjake/cloudflared/datagramsession"
"github.com/kjake/cloudflared/ingress"
"github.com/kjake/cloudflared/packet"
cfdquic "github.com/kjake/cloudflared/quic"
"github.com/kjake/cloudflared/tracing"
"github.com/kjake/cloudflared/tunnelrpc/pogs"
rpcquic "github.com/kjake/cloudflared/tunnelrpc/quic"
)
var (

View File

@ -13,15 +13,15 @@ import (
"go.opentelemetry.io/otel/trace"
"golang.org/x/sync/errgroup"
"github.com/cloudflare/cloudflared/datagramsession"
"github.com/cloudflare/cloudflared/ingress"
"github.com/cloudflare/cloudflared/management"
"github.com/cloudflare/cloudflared/packet"
cfdquic "github.com/cloudflare/cloudflared/quic"
"github.com/cloudflare/cloudflared/tracing"
"github.com/cloudflare/cloudflared/tunnelrpc/pogs"
tunnelpogs "github.com/cloudflare/cloudflared/tunnelrpc/pogs"
rpcquic "github.com/cloudflare/cloudflared/tunnelrpc/quic"
"github.com/kjake/cloudflared/datagramsession"
"github.com/kjake/cloudflared/ingress"
"github.com/kjake/cloudflared/management"
"github.com/kjake/cloudflared/packet"
cfdquic "github.com/kjake/cloudflared/quic"
"github.com/kjake/cloudflared/tracing"
"github.com/kjake/cloudflared/tunnelrpc/pogs"
tunnelpogs "github.com/kjake/cloudflared/tunnelrpc/pogs"
rpcquic "github.com/kjake/cloudflared/tunnelrpc/quic"
)
const (

View File

@ -10,10 +10,10 @@ import (
"github.com/quic-go/quic-go"
"github.com/rs/zerolog"
"github.com/cloudflare/cloudflared/ingress"
"github.com/cloudflare/cloudflared/management"
cfdquic "github.com/cloudflare/cloudflared/quic/v3"
"github.com/cloudflare/cloudflared/tunnelrpc/pogs"
"github.com/kjake/cloudflared/ingress"
"github.com/kjake/cloudflared/management"
cfdquic "github.com/kjake/cloudflared/quic/v3"
"github.com/kjake/cloudflared/tunnelrpc/pogs"
)
type datagramV3Connection struct {

View File

@ -4,7 +4,7 @@ import (
"github.com/pkg/errors"
"github.com/rs/zerolog"
"github.com/cloudflare/cloudflared/cfapi"
"github.com/kjake/cloudflared/cfapi"
)
const (

View File

@ -10,7 +10,7 @@ import (
"github.com/mitchellh/go-homedir"
"github.com/rs/zerolog"
"github.com/cloudflare/cloudflared/config"
"github.com/kjake/cloudflared/config"
)
const (

View File

@ -10,8 +10,8 @@ import (
"github.com/google/uuid"
"github.com/rs/zerolog"
"github.com/cloudflare/cloudflared/management"
"github.com/cloudflare/cloudflared/packet"
"github.com/kjake/cloudflared/management"
"github.com/kjake/cloudflared/packet"
)
const (

View File

@ -15,7 +15,7 @@ import (
"github.com/stretchr/testify/require"
"golang.org/x/sync/errgroup"
"github.com/cloudflare/cloudflared/packet"
"github.com/kjake/cloudflared/packet"
)
var (

View File

@ -11,7 +11,7 @@ import (
"github.com/google/uuid"
"github.com/rs/zerolog"
"github.com/cloudflare/cloudflared/packet"
"github.com/kjake/cloudflared/packet"
)
const (

View File

@ -15,7 +15,7 @@ import (
"github.com/stretchr/testify/require"
"golang.org/x/sync/errgroup"
"github.com/cloudflare/cloudflared/packet"
"github.com/kjake/cloudflared/packet"
)
// TestCloseSession makes sure a session will stop after context is done

View File

@ -1,10 +1,10 @@
FROM golang:1.22.5 as builder
ENV GO111MODULE=on \
CGO_ENABLED=0
WORKDIR /go/src/github.com/cloudflare/cloudflared/
WORKDIR /go/src/github.com/kjake/cloudflared/
RUN apt-get update
COPY . .
RUN .teamcity/install-cloudflare-go.sh
# compile cloudflared
RUN PATH="/tmp/go/bin:$PATH" make cloudflared
RUN cp /go/src/github.com/cloudflare/cloudflared/cloudflared /usr/local/bin/
RUN cp /go/src/github.com/kjake/cloudflared/cloudflared /usr/local/bin/

View File

@ -9,7 +9,7 @@ import (
"net/url"
"strconv"
"github.com/cloudflare/cloudflared/logger"
"github.com/kjake/cloudflared/logger"
)
type httpClient struct {

View File

@ -14,9 +14,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/cloudflare/cloudflared/diagnostic"
"github.com/cloudflare/cloudflared/metrics"
"github.com/cloudflare/cloudflared/tunnelstate"
"github.com/kjake/cloudflared/diagnostic"
"github.com/kjake/cloudflared/metrics"
"github.com/kjake/cloudflared/tunnelstate"
)
func helperCreateServer(t *testing.T, listeners *gracenet.Net, tunnelID uuid.UUID, connectorID uuid.UUID) func() {

View File

@ -11,7 +11,7 @@ import (
"github.com/google/uuid"
"github.com/rs/zerolog"
"github.com/cloudflare/cloudflared/tunnelstate"
"github.com/kjake/cloudflared/tunnelstate"
)
type Handler struct {

View File

@ -15,9 +15,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/cloudflare/cloudflared/connection"
"github.com/cloudflare/cloudflared/diagnostic"
"github.com/cloudflare/cloudflared/tunnelstate"
"github.com/kjake/cloudflared/connection"
"github.com/kjake/cloudflared/diagnostic"
"github.com/kjake/cloudflared/tunnelstate"
)
type SystemCollectorMock struct {

View File

@ -1,4 +1,4 @@
//go:build darwin || linux || unix
//go:build darwin || linux || freebsd
package diagnostic

View File

@ -1,4 +1,4 @@
//go:build darwin || linux || unix
//go:build darwin || linux || freebsd
package diagnostic_test

View File

@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
diagnostic "github.com/cloudflare/cloudflared/diagnostic/network"
diagnostic "github.com/kjake/cloudflared/diagnostic/network"
)
func TestDecode(t *testing.T) {

View File

@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/cloudflare/cloudflared/diagnostic"
"github.com/kjake/cloudflared/diagnostic"
)
func TestParseMemoryInformationFromKV(t *testing.T) {

View File

@ -10,7 +10,7 @@ import (
"github.com/pkg/errors"
"github.com/rs/zerolog"
"github.com/cloudflare/cloudflared/management"
"github.com/kjake/cloudflared/management"
)
const (

View File

@ -5,8 +5,8 @@ import (
"github.com/rs/zerolog"
"github.com/cloudflare/cloudflared/edgediscovery/allregions"
"github.com/cloudflare/cloudflared/management"
"github.com/kjake/cloudflared/edgediscovery/allregions"
"github.com/kjake/cloudflared/management"
)
const (

View File

@ -7,7 +7,7 @@ import (
"github.com/rs/zerolog"
"github.com/stretchr/testify/assert"
"github.com/cloudflare/cloudflared/edgediscovery/allregions"
"github.com/kjake/cloudflared/edgediscovery/allregions"
)
var (

View File

@ -4,7 +4,7 @@ package main
import (
_ "crypto/tls/fipsonly"
"github.com/cloudflare/cloudflared/cmd/cloudflared/tunnel"
"github.com/kjake/cloudflared/cmd/cloudflared/tunnel"
)
func init () {

View File

@ -2,7 +2,7 @@
set -e -o pipefail
OUTPUT=$(goimports -l -d -local github.com/cloudflare/cloudflared $(go list -mod=vendor -f '{{.Dir}}' -a ./... | fgrep -v tunnelrpc))
OUTPUT=$(goimports -l -d -local github.com/kjake/cloudflared $(go list -mod=vendor -f '{{.Dir}}' -a ./... | fgrep -v tunnelrpc))
if [ -n "$OUTPUT" ] ; then
PAGER=$(which colordiff || echo cat)

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/cloudflare/cloudflared
module github.com/kjake/cloudflared
go 1.22

View File

@ -15,7 +15,7 @@ import (
"github.com/gorilla/websocket"
"github.com/rs/zerolog"
"github.com/cloudflare/cloudflared/tlsconfig"
"github.com/kjake/cloudflared/tlsconfig"
)
const (

View File

@ -6,9 +6,9 @@ import (
"github.com/urfave/cli/v2"
"github.com/cloudflare/cloudflared/config"
"github.com/cloudflare/cloudflared/ipaccess"
"github.com/cloudflare/cloudflared/tlsconfig"
"github.com/kjake/cloudflared/config"
"github.com/kjake/cloudflared/ipaccess"
"github.com/kjake/cloudflared/tlsconfig"
)
var (

View File

@ -10,8 +10,8 @@ import (
"github.com/urfave/cli/v2"
yaml "gopkg.in/yaml.v3"
"github.com/cloudflare/cloudflared/config"
"github.com/cloudflare/cloudflared/ipaccess"
"github.com/kjake/cloudflared/config"
"github.com/kjake/cloudflared/ipaccess"
)
// Ensure that the nullable config from `config` package and the

View File

@ -1,6 +1,6 @@
package ingress
import "github.com/cloudflare/cloudflared/logger"
import "github.com/kjake/cloudflared/logger"
var (
TestLogger = logger.Create(nil)

View File

@ -20,8 +20,8 @@ import (
"go.opentelemetry.io/otel/attribute"
"golang.org/x/net/icmp"
"github.com/cloudflare/cloudflared/packet"
"github.com/cloudflare/cloudflared/tracing"
"github.com/kjake/cloudflared/packet"
"github.com/kjake/cloudflared/tracing"
)
type icmpProxy struct {

View File

@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/cloudflare/cloudflared/packet"
"github.com/kjake/cloudflared/packet"
)
func TestSingleEchoIDTracker(t *testing.T) {

View File

@ -11,7 +11,7 @@ import (
"github.com/rs/zerolog"
"github.com/cloudflare/cloudflared/packet"
"github.com/kjake/cloudflared/packet"
)
var errICMPProxyNotImplemented = fmt.Errorf("ICMP proxy is not implemented on %s %s", runtime.GOOS, runtime.GOARCH)

View File

@ -21,8 +21,8 @@ import (
"github.com/rs/zerolog"
"go.opentelemetry.io/otel/attribute"
"github.com/cloudflare/cloudflared/packet"
"github.com/cloudflare/cloudflared/tracing"
"github.com/kjake/cloudflared/packet"
"github.com/kjake/cloudflared/tracing"
)
const (

View File

@ -5,7 +5,7 @@ package ingress
import (
"testing"
"github.com/cloudflare/cloudflared/packet"
"github.com/kjake/cloudflared/packet"
)
func getFunnel(t *testing.T, proxy *icmpProxy, tuple flow3Tuple) (packet.Funnel, bool) {

View File

@ -1,5 +1,4 @@
//go:build darwin || linux
//go:build darwin || linux || freebsd
package ingress
// This file extracts logic shared by Linux and Darwin implementation if ICMPProxy.
@ -14,7 +13,7 @@ import (
"github.com/rs/zerolog"
"golang.org/x/net/icmp"
"github.com/cloudflare/cloudflared/packet"
"github.com/kjake/cloudflared/packet"
)
// Opens a non-privileged ICMP socket on Linux and Darwin

View File

@ -1,4 +1,4 @@
//go:build darwin || linux
//go:build darwin || linux || freebsd
package ingress
@ -15,7 +15,7 @@ import (
"golang.org/x/net/icmp"
"golang.org/x/net/ipv4"
"github.com/cloudflare/cloudflared/packet"
"github.com/kjake/cloudflared/packet"
)
func TestFunnelIdleTimeout(t *testing.T) {

View File

@ -25,8 +25,8 @@ import (
"golang.org/x/net/ipv4"
"golang.org/x/net/ipv6"
"github.com/cloudflare/cloudflared/packet"
"github.com/cloudflare/cloudflared/tracing"
"github.com/kjake/cloudflared/packet"
"github.com/kjake/cloudflared/tracing"
)
const (

View File

@ -13,9 +13,9 @@ import (
"github.com/urfave/cli/v2"
"golang.org/x/net/idna"
"github.com/cloudflare/cloudflared/config"
"github.com/cloudflare/cloudflared/ingress/middleware"
"github.com/cloudflare/cloudflared/ipaccess"
"github.com/kjake/cloudflared/config"
"github.com/kjake/cloudflared/ingress/middleware"
"github.com/kjake/cloudflared/ipaccess"
)
var (

View File

@ -14,9 +14,9 @@ import (
"github.com/urfave/cli/v2"
yaml "gopkg.in/yaml.v3"
"github.com/cloudflare/cloudflared/config"
"github.com/cloudflare/cloudflared/ipaccess"
"github.com/cloudflare/cloudflared/tlsconfig"
"github.com/kjake/cloudflared/config"
"github.com/kjake/cloudflared/ipaccess"
"github.com/kjake/cloudflared/tlsconfig"
)
func TestParseUnixSocket(t *testing.T) {

View File

@ -8,10 +8,10 @@ import (
"github.com/rs/zerolog"
"github.com/cloudflare/cloudflared/ipaccess"
"github.com/cloudflare/cloudflared/socks"
"github.com/cloudflare/cloudflared/stream"
"github.com/cloudflare/cloudflared/websocket"
"github.com/kjake/cloudflared/ipaccess"
"github.com/kjake/cloudflared/socks"
"github.com/kjake/cloudflared/stream"
"github.com/kjake/cloudflared/websocket"
)
// OriginConnection is a way to stream to a service running on the user's origin.

View File

@ -19,9 +19,9 @@ import (
"golang.org/x/net/proxy"
"golang.org/x/sync/errgroup"
"github.com/cloudflare/cloudflared/socks"
"github.com/cloudflare/cloudflared/stream"
"github.com/cloudflare/cloudflared/websocket"
"github.com/kjake/cloudflared/socks"
"github.com/kjake/cloudflared/stream"
"github.com/kjake/cloudflared/websocket"
)
const (

View File

@ -13,8 +13,8 @@ import (
"golang.org/x/net/ipv4"
"golang.org/x/net/ipv6"
"github.com/cloudflare/cloudflared/packet"
"github.com/cloudflare/cloudflared/tracing"
"github.com/kjake/cloudflared/packet"
"github.com/kjake/cloudflared/tracing"
)
const (

Some files were not shown because too many files have changed in this diff Show More