From 3b8c149e3859e3e888a4583ebdce9a4b94ab1562 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 13 Oct 2020 11:38:22 +0200 Subject: [PATCH] Port 8023 is better, it is non protected. Users are free to bind another port --- Dockerfile | 4 ++-- docs/ghostream.example.yml | 2 +- internal/config/config.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 77a8a37..6f0e5fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,6 @@ FROM alpine:3.12 RUN apk add --no-cache -X https://dl-cdn.alpinelinux.org/alpine/edge/community/ ffmpeg libsrt COPY --from=build_base /code/out/ghostream /app/ghostream WORKDIR /app -# 9710 for SRT, 8080 for Web, 2112 for monitoring and 10000-10005 (UDP) for WebRTC -EXPOSE 23 9710/udp 8080 2112 10000-10005/udp +# 9710 for SRT, 8080 for Web, 2112 for monitoring, 10000-10005 (UDP) for WebRTC and 23 for telnet +EXPOSE 9710/udp 8080 2112 10000-10005/udp 8023 CMD ["/app/ghostream"] diff --git a/docs/ghostream.example.yml b/docs/ghostream.example.yml index 6ad859d..98b8554 100644 --- a/docs/ghostream.example.yml +++ b/docs/ghostream.example.yml @@ -75,7 +75,7 @@ telnet: # You must enable it to use it. #enable: false - #listenAddress: :23 + #listenAddress: :8023 # Size is in characters. It is recommended to keep a 16x9 format. #width: 80 diff --git a/internal/config/config.go b/internal/config/config.go index 5a59f8f..a6bd1ce 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -60,7 +60,7 @@ func New() *Config { }, Telnet: telnet.Options{ Enabled: false, - ListenAddress: ":23", + ListenAddress: ":8023", Width: 80, Height: 45, Delay: 50,