From 0c077f0a8c754bd79cdc6ce533de43fffeee5f38 Mon Sep 17 00:00:00 2001 From: Leo Balduf Date: Tue, 13 Feb 2018 10:07:01 +0100 Subject: [PATCH] *: move default tracker port to 6969 --- Dockerfile | 2 +- cmd/chihaya-e2e/main.go | 4 ++-- example_config.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e9854f2..3ac6f95 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ COPY --from=build-env /go/bin/chihaya /chihaya RUN adduser -D chihaya # Expose a docker interface to our binary. -EXPOSE 6880 6881 +EXPOSE 6880 6969 # Drop root privileges USER chihaya diff --git a/cmd/chihaya-e2e/main.go b/cmd/chihaya-e2e/main.go index 25c57d6..f59ed64 100644 --- a/cmd/chihaya-e2e/main.go +++ b/cmd/chihaya-e2e/main.go @@ -15,8 +15,8 @@ import ( ) func init() { - flag.StringVar(&httpTrackerURL, "http", "http://localhost:6881/announce", "the address of the HTTP tracker") - flag.StringVar(&udpTrackerURL, "udp", "udp://localhost:6881", "the address of the UDP tracker") + flag.StringVar(&httpTrackerURL, "http", "http://localhost:6969/announce", "the address of the HTTP tracker") + flag.StringVar(&udpTrackerURL, "udp", "udp://localhost:6969", "the address of the UDP tracker") flag.DurationVar(&delay, "delay", 1*time.Second, "the delay between announces") } diff --git a/example_config.yaml b/example_config.yaml index d5939e7..5212681 100644 --- a/example_config.yaml +++ b/example_config.yaml @@ -26,7 +26,7 @@ chihaya: http: # The network interface that will bind to an HTTP server for serving # BitTorrent traffic. - addr: "0.0.0.0:6881" + addr: "0.0.0.0:6969" # The path to the required files to listen via HTTPS. tls_cert_path: "" @@ -72,7 +72,7 @@ chihaya: udp: # The network interface that will bind to a UDP server for serving # BitTorrent traffic. - addr: "0.0.0.0:6881" + addr: "0.0.0.0:6969" # The leeway for a timestamp on a connection ID. max_clock_skew: 10s