fix: hostinger VPS - ipv4/ipv6 son arrays, no strings
This commit is contained in:
@@ -80,8 +80,8 @@ type HostingerVPS struct {
|
|||||||
CPU int `json:"cpus"`
|
CPU int `json:"cpus"`
|
||||||
RAMBytes int64 `json:"ram"`
|
RAMBytes int64 `json:"ram"`
|
||||||
DiskBytes int64 `json:"disk"`
|
DiskBytes int64 `json:"disk"`
|
||||||
IPV4 string `json:"ipv4"`
|
IPV4 []string `json:"ipv4"`
|
||||||
IPV6 string `json:"ipv6"`
|
IPV6 []string `json:"ipv6"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// HostingerDomain representa un dominio en el portafolio.
|
// HostingerDomain representa un dominio en el portafolio.
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
x-text="v.state"></span>
|
x-text="v.state"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="space-y-1 text-xs text-gray-500">
|
<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>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>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>
|
<div class="flex justify-between"><span>CPU</span><span x-text="(v.cpus || v.cpu || '—') + ' vCPU'"></span></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user