1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-27 20:22:16 +02:00

Make telnet output configurable

This commit is contained in:
Yohann D'ANELLO
2020-10-13 00:15:23 +02:00
parent e640450d98
commit 61ae490a5d
5 changed files with 75 additions and 17 deletions

View File

@ -3,6 +3,7 @@ package config
import (
"bytes"
"gitlab.crans.org/nounous/ghostream/stream/telnet"
"log"
"net"
"strings"
@ -25,6 +26,7 @@ type Config struct {
Forwarding forwarding.Options
Monitoring monitoring.Options
Srt srt.Options
Telnet telnet.Options
Web web.Options
WebRTC webrtc.Options
}
@ -56,6 +58,13 @@ func New() *Config {
ListenAddress: ":9710",
MaxClients: 64,
},
Telnet: telnet.Options{
Enabled: false,
ListenAddress: ":4242",
Width: 80,
Height: 45,
Delay: 50,
},
Web: web.Options{
Enabled: true,
Favicon: "/static/img/favicon.svg",