make ip version configurable
All checks were successful
Pipeline was successful

This commit is contained in:
2023-11-08 22:01:20 +01:00
parent be83d204dc
commit 24be598758
2 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,7 @@ func CreateNewAgent(cfg *config.Config) (*hcloud.Server, error) {
}
networkConf := hcloud.ServerCreatePublicNet{
EnableIPv4: false,
EnableIPv4: !cfg.HcloudIPv6Only,
EnableIPv6: true,
}