mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-12 13:25:38 +08:00
try to set topic when initializing enroll service (#242)
This commit is contained in:
@@ -64,6 +64,9 @@ func NewService(topic TopicProvider, sub pubsub.Subscriber, caCertPath, scepURL,
|
||||
subject = append(subject, [][]string{[]string{subjectKeyValue[0], subjectKeyValue[1]}})
|
||||
}
|
||||
|
||||
// fetch the push topic from the db.
|
||||
// will be "" if the push certificate hasn't been uploaded yet
|
||||
pushTopic, _ := topic.PushTopic()
|
||||
svc := &service{
|
||||
URL: url,
|
||||
SCEPURL: scepURL,
|
||||
@@ -72,6 +75,7 @@ func NewService(topic TopicProvider, sub pubsub.Subscriber, caCertPath, scepURL,
|
||||
CACert: caCert,
|
||||
TLSCert: tlsCert,
|
||||
ProfileDB: profileDB,
|
||||
Topic: pushTopic,
|
||||
topicProvier: topic,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user