fix(region): avoid panic (#19310)

This commit is contained in:
屈轩
2024-01-19 19:31:10 +08:00
committed by GitHub
parent ed75e9304e
commit f06cda7481
+1
View File
@@ -104,6 +104,7 @@ func (manager *SReservedipManager) ReserveIPWithDurationAndStatus(ctx context.Co
ExpiredAt: expiredAt,
Status: status,
}
rip.SetModelManager(manager, rip)
if addrType == api.AddressTypeIPv6 {
rip.Ip6Addr = ip
} else {