mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-11-03 09:51:26 +08:00
This allows to proxy requests to other servers by using regular expressions.
This commit is contained in:
@@ -20,8 +20,9 @@ import (
|
||||
|
||||
// Source is a HLS static source.
|
||||
type Source struct {
|
||||
ReadTimeout conf.StringDuration
|
||||
Parent defs.StaticSourceParent
|
||||
ResolvedSource string
|
||||
ReadTimeout conf.StringDuration
|
||||
Parent defs.StaticSourceParent
|
||||
}
|
||||
|
||||
// Log implements logger.Writer.
|
||||
@@ -43,7 +44,7 @@ func (s *Source) Run(params defs.StaticSourceRunParams) error {
|
||||
|
||||
var c *gohlslib.Client
|
||||
c = &gohlslib.Client{
|
||||
URI: params.Conf.Source,
|
||||
URI: s.ResolvedSource,
|
||||
HTTPClient: &http.Client{
|
||||
Timeout: time.Duration(s.ReadTimeout),
|
||||
Transport: &http.Transport{
|
||||
|
||||
Reference in New Issue
Block a user