File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -683,12 +683,10 @@ func (s *DaemonServer) PolicyDescription(ctx context.Context,
683
683
}
684
684
description = response .Description
685
685
} else {
686
- globalPolicyURL := "https://raw.githubusercontent.com/marcodermatt/fabrid-global-policies/main/policy-descriptions.json"
687
-
688
- // Fetch the global policy from the URL
689
- policy , err := FetchGlobalPolicy (globalPolicyURL )
686
+ // Fetch the global policy map from the URL
687
+ policy , err := FetchGlobalPolicy (fabrid .GlobalPolicyURL )
690
688
if err != nil {
691
- return nil , serrors .WrapStr ("fetching global policy" , err )
689
+ return nil , serrors .WrapStr ("fetching global policy map " , err )
692
690
}
693
691
694
692
// Retrieve the description for the given identifier
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ package fabrid
16
16
17
17
import "fmt"
18
18
19
+ const GlobalPolicyURL = "https://raw.githubusercontent.com/marcodermatt/fabrid-global-policies/main/policy-descriptions.json"
20
+
19
21
type PolicyID uint8
20
22
21
23
type Policy struct {
You can’t perform that action at this time.
0 commit comments