2
0
mirror of https://github.com/namecoin/ncdns synced 2024-11-11 19:10:43 +00:00
ncdns/server/server_tls.go
2019-10-04 03:58:12 +00:00

25 lines
542 B
Go

// +build !no_namecoin_tls
package server
import (
"fmt"
"github.com/namecoin/ncdns/tlsoverridefirefox/tlsoverridefirefoxsync"
"github.com/namecoin/tlsrestrictnss/tlsrestrictnsssync"
)
func (s *Server) StartBackgroundTasks() error {
err := tlsoverridefirefoxsync.Start(s.namecoinConn, s.cfg.CanonicalSuffix)
if err != nil {
return fmt.Errorf("Couldn't start Firefox override sync: %s", err)
}
err = tlsrestrictnsssync.Start()
if err != nil {
return fmt.Errorf("Couldn't start tlsrestrictnss sync: %s", err)
}
return nil
}