Skip to content

Commit 281a314

Browse files
ymLKaemmerling
authored andcommitted
Fix PTR update for load balancer
1 parent 58aa461 commit 281a314

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/hcops/load_balancer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ func (l *LoadBalancerOps) changeIPv4RDNS(ctx context.Context, lb *hcloud.LoadBal
368368
return false, nil
369369
}
370370

371-
action, _, err := l.LBClient.ChangeDNSPtr(ctx, lb, string(lb.PublicNet.IPv4.IP), &rdns)
371+
action, _, err := l.LBClient.ChangeDNSPtr(ctx, lb, lb.PublicNet.IPv4.IP.String(), &rdns)
372372

373373
if err != nil {
374374
return false, fmt.Errorf("%s: %w", op, err)
@@ -394,7 +394,7 @@ func (l *LoadBalancerOps) changeIPv6RDNS(ctx context.Context, lb *hcloud.LoadBal
394394
return false, nil
395395
}
396396

397-
action, _, err := l.LBClient.ChangeDNSPtr(ctx, lb, string(lb.PublicNet.IPv6.IP), &rdns)
397+
action, _, err := l.LBClient.ChangeDNSPtr(ctx, lb, lb.PublicNet.IPv6.IP.String(), &rdns)
398398

399399
if err != nil {
400400
return false, fmt.Errorf("%s: %w", op, err)

0 commit comments

Comments
 (0)