mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
1 parent
23581a34b0
commit
3763f9e076
1 file changed
+1
-1
@@ -9,7 +9,7 @@ const { t } = useI18n();
|
||||
const port = useQueryParam({ tool: 'port-numbers', name: 'port', defaultValue: 80 });
|
||||
const protocol = useQueryParam({ tool: 'port-numbers', name: 'proto', defaultValue: 'tcp' });
|
||||
const result = computed(() => {
|
||||
const [type, description] = ports[`${port.value}/${protocol.value}` as (keyof typeof ports)];
|
||||
const [type, description] = ports[`${port.value}/${protocol.value}` as (keyof typeof ports)] || [];
|
||||
return { type: type ?? 'unknown', description: description ?? 'Unknown' };
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in new issue
Block a user