1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Fixed TLP model conversion. Fixed wrong .well-known path

This commit is contained in:
Sascha L. Teichmann 2021-12-02 01:36:57 +01:00
parent 048c0dce89
commit e5a6a8e2da
2 changed files with 3 additions and 3 deletions

View file

@ -63,10 +63,10 @@ func (cfg *config) GetOpenPGPURL(key string) string {
}
func (cfg *config) modelTLPs() []csaf.TLPLabel {
tlps := make([]csaf.TLPLabel, len(cfg.TLPs))
tlps := make([]csaf.TLPLabel, 0, len(cfg.TLPs))
for _, t := range cfg.TLPs {
if t != tlpCSAF {
tlps = append(tlps, csaf.TLPLabel(t))
tlps = append(tlps, csaf.TLPLabel(strings.ToUpper(string(t))))
}
}
return tlps