From 518a414769a9b8c10dbe351bce19fe60968b829b Mon Sep 17 00:00:00 2001 From: aleskxyz <39186039+aleskxyz@users.noreply.github.com> Date: Sat, 28 Oct 2023 18:22:35 +0200 Subject: [PATCH] remove redirection of logs to dev/null --- README.md | 7 +------ entrypoint.sh | 12 ++---------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index e31c5ca..ddafaf7 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,7 @@ Cloudflare WARP client as a socks5 server in docker This dockerfile will create a docker image with official Cloudflare WARP client for linux and provides a socks5 proxy to use in other compaliant applications either in your local machine or by other docker containers in a docker compose or Kubernetes. -The official Cloudflare WARP client for Linux: - -* Only listens on localhost for the socks proxy so you cannot use it in a docker container which need to bind on 0.0.0.0 -* Generates lots of DEBGU logs and you cannot reduse the verbosity level of it in configuration - -Both of these issues has been solved in this dockerfile. +The official Cloudflare WARP client for Linux only listens on localhost for the socks proxy so you cannot use it in a docker container which need to bind on 0.0.0.0 ## Features * Register a new Cloudflare WARP account diff --git a/entrypoint.sh b/entrypoint.sh index 3f3a8e2..3d41b74 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,14 +1,6 @@ #!/bin/bash set -m -mkdir -p /var/lib/cloudflare-warp -cd /var/lib/cloudflare-warp -ln -s /dev/null cfwarp_daemon_dns.txt -ln -s /dev/null cfwarp_service_boring.txt -ln -s /dev/null cfwarp_service_dns_stats.txt -ln -s /dev/null cfwarp_service_log.txt -ln -s /dev/null cfwarp_service_stats.txt -cd / -warp-svc | grep -v DEBUG & +warp-svc & sleep 2 warp-cli --accept-tos register warp-cli --accept-tos set-proxy-port 40000 @@ -20,4 +12,4 @@ if [[ -n $WARP_LICENSE ]]; then fi warp-cli --accept-tos connect socat tcp-listen:1080,reuseaddr,fork tcp:localhost:40000 & -fg %1 \ No newline at end of file +fg %1