Export config

This commit is contained in:
Yohann D'ANELLO 2020-11-09 17:28:56 +01:00
parent b52f377b6b
commit a20c6202fd
1 changed files with 4 additions and 2 deletions

View File

@ -22,8 +22,10 @@ var (
)
// Serve handles incoming packets from SRT and forward them to OME
func Serve(streams *messaging.Streams, cfg *Options) {
if !cfg.Enabled {
func Serve(streams *messaging.Streams, c *Options) {
cfg = c
if !c.Enabled {
return
}