diff --git a/Makefile b/Makefile index c117e1ee..22a700b4 100644 --- a/Makefile +++ b/Makefile @@ -62,7 +62,7 @@ local-proxy: local-rts $(DIST_DIR)/http-proxy: $(SRCS) GOOS=linux GOARCH=amd64 CGO_ENABLED=0 \ go build -o $(DIST_DIR)/http-proxy \ - -ldflags="-X main.revision=$(GIT_REVISION) -X main.build_type=$(BUILD_TYPE)" \ + -ldflags="-X main.revision=$(GIT_REVISION) -X main.build_type=$(BUILD_TYPE) -X proxy.teleportHost=$(TELEPORT_HOST)" \ ./http-proxy distnochange: $(DIST_DIR)/http-proxy diff --git a/http_proxy.go b/http_proxy.go index d56011f6..5e6f76a8 100644 --- a/http_proxy.go +++ b/http_proxy.go @@ -73,7 +73,7 @@ import ( const ( timeoutToDialOriginSite = 10 * time.Second - teleportHost = "telemetry.iantem.io:443" + teleportHost = "" ) var (