mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
FEATURE: Add rTypes restrictions to IGNORE_NAME (#1808)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
@ -35,7 +35,7 @@ var currentDirectory string
|
||||
// EnableFetch sets whether to enable fetch() in JS execution environment
|
||||
var EnableFetch bool = false
|
||||
|
||||
// ExecuteJavascript accepts a javascript string and runs it, returning the resulting dnsConfig.
|
||||
// ExecuteJavascript accepts a javascript file and runs it, returning the resulting dnsConfig.
|
||||
func ExecuteJavascript(file string, devMode bool, variables map[string]string) (*models.DNSConfig, error) {
|
||||
script, err := os.ReadFile(file)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user