1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-29 14:41:01 +02:00

Test telnet package

This commit is contained in:
Yohann D'ANELLO
2020-10-14 19:42:23 +02:00
parent e5f4c3a7e6
commit 8590f23039
2 changed files with 64 additions and 2 deletions

View File

@ -57,8 +57,7 @@ func Serve(config *Options) {
streamID := ""
// Request for stream ID
for {
_, _ = s.Write([]byte("[GHOSTREAM]\n"))
_, err = s.Write([]byte("Enter stream ID: "))
_, err = s.Write([]byte("[GHOSTREAM]\nEnter stream ID: "))
if err != nil {
log.Println("Error while requesting stream ID to telnet client")
_ = s.Close()