|
|
@ -14,6 +14,8 @@ var cfg = &Config{ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// LoadZones loads all zones and machines in the config directory
|
|
|
|
// LoadZones loads all zones and machines in the config directory
|
|
|
|
func (cfg *Config) LoadZones() (*zones.Zones, error) { |
|
|
|
func (cfg *Config) LoadZones(resolve bool) (*zones.Zones, error) { |
|
|
|
return zones.New(cfg.Base, cfg.Domain) |
|
|
|
return zones.New(cfg.Base, cfg.Domain, |
|
|
|
|
|
|
|
zones.ResolvePublicAddresses(resolve), |
|
|
|
|
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|