This commit is contained in:
parent
be83d204dc
commit
24be598758
@ -23,6 +23,7 @@ type Config = struct {
|
||||
HcloudRegion string `default:"" env:"WOODPECKER_AUTOSCALER_HCLOUD_REGION"`
|
||||
HcloudDatacenter string `default:"" env:"WOODPECKER_AUTOSCALER_HCLOUD_DATACENTER"`
|
||||
HcloudSSHKeys string `default:"" env:"WOODPECKER_AUTOSCALER_HCLOUD_SSH_KEYS"`
|
||||
HcloudIPv6Only bool `default:"false" env:"WOODPECKER_AUTOSCALER_HCLOUD_IPV6_ONLY"`
|
||||
}
|
||||
|
||||
func GenConfig() (cfg *Config, err error) {
|
||||
|
@ -94,7 +94,7 @@ func CreateNewAgent(cfg *config.Config) (*hcloud.Server, error) {
|
||||
}
|
||||
|
||||
networkConf := hcloud.ServerCreatePublicNet{
|
||||
EnableIPv4: false,
|
||||
EnableIPv4: !cfg.HcloudIPv6Only,
|
||||
EnableIPv6: true,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user