diff --git a/srt/server.go b/srt/server.go index 2b2d59d..8b61971 100644 --- a/srt/server.go +++ b/srt/server.go @@ -333,7 +333,6 @@ func (s *ServerImpl) GetStatistics() []*relay.StreamStatistics { streams := s.relay.GetStatistics() for _, st := range streams { st.URL = fmt.Sprintf("srt://%s?streamid=#!::m=request,r=%s", s.config.PublicAddress, st.Name) // New format - //st.URL = fmt.Sprintf("srt://%s?streamid=play/%s", s.config.PublicAddress, st.Name) // Old format } return streams } diff --git a/srt/server_test.go b/srt/server_test.go index 311f5ed..5217b44 100644 --- a/srt/server_test.go +++ b/srt/server_test.go @@ -46,7 +46,6 @@ func TestServerImpl_GetStatistics(t *testing.T) { streams := s.GetStatistics() expected := []*relay.StreamStatistics{ - //{Name: "s1", URL: "srt://testserver.de:1337?streamid=play/s1", Clients: 2, Created: streams[0].Created}, // Old Format {Name: "s1", URL: "srt://testserver.de:1337?streamid=#!::m=request,r=s1", Clients: 2, Created: streams[0].Created}, // New Format } if err := compareStats(streams, expected); err != nil {