mirror of https://github.com/certd/certd
chore:
parent
8f7b3f29ce
commit
6c9f9940e3
|
@ -16,18 +16,11 @@
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed } from "vue";
|
import { computed } from "vue";
|
||||||
import psl from "psl";
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
record: any;
|
record: any;
|
||||||
}>();
|
}>();
|
||||||
const mainDomain = computed(() => {
|
|
||||||
if (props?.record?.domain) {
|
|
||||||
return psl.parse(props.record.domain).domain;
|
|
||||||
}
|
|
||||||
return "";
|
|
||||||
});
|
|
||||||
|
|
||||||
const nslookupCmd = computed(() => {
|
const nslookupCmd = computed(() => {
|
||||||
return `nslookup -qa=txt ${props.record.hostRecord}.${mainDomain.value}`;
|
return `nslookup -qa=txt _acme-challenge.${props.record.domain}`;
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue