Skip to content

Commit

Permalink
fix: netinfo and client subnet ip
Browse files Browse the repository at this point in the history
  • Loading branch information
robsongajunior committed Jan 27, 2025
1 parent 6c29c1a commit e124cba
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/templates/netinfo/Netinfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@
<strong class="text-nowrap">Azion Edge IP:</strong> {{ data.azion.label }}
</p>
</li>
<li
class="flex flex-row gap-2 border-b surface-border p-2"
v-if="data.subnet.ip"
>
<p>
<strong class="text-nowrap">Subnet IP:</strong> {{ data.subnet.ip }}
</p>
</li>
<li class="flex flex-row gap-2 border-b surface-border p-2">
<p>
<strong class="text-nowrap">Resolver IP:</strong> {{ data.resolver.label }}
Expand Down Expand Up @@ -80,6 +88,11 @@
<Skeleton width="5rem" height="25px" />: <Skeleton width="12rem" height="25px" />
</p>
</li>
<li class="flex flex-row gap-2 border-b surface-border p-2">
<p class="flex flex-row gap-2">
<Skeleton width="5rem" height="25px" />: <Skeleton width="12rem" height="25px" />
</p>
</li>
<li class="flex flex-row gap-2 border-b surface-border p-2">
<p class="flex flex-row gap-2">
<Skeleton width="5rem" height="25px" />: <Skeleton width="20rem" height="25px" />
Expand Down Expand Up @@ -190,6 +203,9 @@
city: data.x_real_ip_city,
country: data.x_real_ip_country
},
subnet: {
ip: data.client_subnet_ip
},
resolver: {
label: `${data.resolver_ip} (${data.resolver_ip_asn}, ${data.resolver_ip_country})`,
ip: data.resolver_ip,
Expand All @@ -198,7 +214,7 @@
region: data.resolver_ip_region,
city: data.resolver_ip_city,
country: data.resolver_ip_country
}
},
}
}
</script>

0 comments on commit e124cba

Please sign in to comment.