Merge pull request #392 from mrd0ll4r/default-port

*: move default tracker port to 6969
This commit is contained in:
mrd0ll4r 2018-02-14 11:26:48 +01:00 committed by GitHub
commit b1c05d362a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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")
}

View file

@ -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