fix: hostinger VPS - ipv4/ipv6 son arrays, no strings

This commit is contained in:
Lizandro Guarnizo
2026-05-14 19:21:29 -05:00
parent 569084c760
commit d2fdc1f0db
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -80,8 +80,8 @@ type HostingerVPS struct {
CPU int `json:"cpus"`
RAMBytes int64 `json:"ram"`
DiskBytes int64 `json:"disk"`
IPV4 string `json:"ipv4"`
IPV6 string `json:"ipv6"`
IPV4 []string `json:"ipv4"`
IPV6 []string `json:"ipv6"`
}
// HostingerDomain representa un dominio en el portafolio.
+1 -1
View File
@@ -67,7 +67,7 @@
x-text="v.state"></span>
</div>
<div class="space-y-1 text-xs text-gray-500">
<div class="flex justify-between"><span>IPv4</span><span class="font-mono" x-text="v.ipv4 || '—'"></span></div>
<div class="flex justify-between"><span>IPv4</span><span class="font-mono" x-text="(v.ipv4 && v.ipv4.length) ? v.ipv4.join(', ') : '—'"></span></div>
<div class="flex justify-between"><span>Plan</span><span x-text="v.plan || '—'"></span></div>
<div class="flex justify-between"><span>Datacenter</span><span x-text="v.data_center || '—'"></span></div>
<div class="flex justify-between"><span>CPU</span><span x-text="(v.cpus || v.cpu || '—') + ' vCPU'"></span></div>