mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-11-03 02:13:25 +08:00
fix:puller.go init function change p.Plugin to plugin
feature:auto init shutdown.sh or shutdown.bat when program start
This commit is contained in:
@@ -83,7 +83,7 @@ func (p *PullJob) GetPullJob() *PullJob {
|
||||
|
||||
func (p *PullJob) Init(puller IPuller, plugin *Plugin, streamPath string, conf config.Pull, pubConf *config.Publish) *PullJob {
|
||||
if pubConf == nil {
|
||||
p.PublishConfig = p.Plugin.GetCommonConf().Publish
|
||||
p.PublishConfig = plugin.GetCommonConf().Publish
|
||||
} else {
|
||||
p.PublishConfig = *pubConf
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user