cloud template url update (#4439)

dev
Sandeep Singh 2023-11-28 22:05:58 +05:30 committed by GitHub
parent b633ef63dc
commit 1d6890ca2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ func TestSimpleNucleiRemote(t *testing.T) {
ne, err := nuclei.NewNucleiEngine(
nuclei.WithTemplatesOrWorkflows(
nuclei.TemplateSources{
RemoteTemplates: []string{"https://templates.nuclei.sh/public/nameserver-fingerprint.yaml"},
RemoteTemplates: []string{"https://cloud.projectdiscovery.io/public/nameserver-fingerprint.yaml"},
},
),
)

View File

@ -197,7 +197,7 @@ func handleTemplatesEditorURLs(input string) string {
if err != nil {
return input
}
if !strings.HasSuffix(parsed.Hostname(), "templates.nuclei.sh") {
if !strings.HasSuffix(parsed.Hostname(), "cloud.projectdiscovery.io") {
return input
}
if strings.HasSuffix(parsed.Path, ".yaml") {

View File

@ -8,7 +8,7 @@ import (
const (
// TemplatesRepoURL is the URL for files in nuclei-templates repository
TemplatesRepoURL = "https://templates.nuclei.sh/public/"
TemplatesRepoURL = "https://cloud.projectdiscovery.io/public/"
)
// TemplatePathURL returns the Path and URL for the provided template