chore: removed DDNS for AAAA
This commit is contained in:
parent
c6b5a60695
commit
7386019603
1 changed files with 8 additions and 8 deletions
|
|
@ -23,10 +23,10 @@
|
||||||
return "#!/bin/bash\n" +
|
return "#!/bin/bash\n" +
|
||||||
"IP=$(curl -s http://ipv4.icanhazip.com)\n" +
|
"IP=$(curl -s http://ipv4.icanhazip.com)\n" +
|
||||||
`curl -X PUT https://hexname.com/api/v1/ddns/ipv4/${token}/$IP`
|
`curl -X PUT https://hexname.com/api/v1/ddns/ipv4/${token}/$IP`
|
||||||
} else if (record.record_type === "AAAA") {
|
// } else if (record.record_type === "AAAA") {
|
||||||
return "#!/bin/bash\n" +
|
// return "#!/bin/bash\n" +
|
||||||
"IP=$(curl -s http://ipv6.icanhazip.com)\n" +
|
// "IP=$(curl -s http://ipv6.icanhazip.com)\n" +
|
||||||
`curl -X PUT https://hexname.com/api/v1/ddns/ipv6/${token}/$IP`
|
// `curl -X PUT https://hexname.com/api/v1/ddns/ipv6/${token}/$IP`
|
||||||
} else {
|
} else {
|
||||||
return "A weird error happened. Please contact support with this screenshot.";
|
return "A weird error happened. Please contact support with this screenshot.";
|
||||||
}
|
}
|
||||||
|
|
@ -196,7 +196,6 @@
|
||||||
<tr
|
<tr
|
||||||
class={isEdit
|
class={isEdit
|
||||||
? "bg-primary/30"
|
? "bg-primary/30"
|
||||||
// ? "bg-base-300"
|
|
||||||
:
|
:
|
||||||
`${
|
`${
|
||||||
i % 2 === 0 ? '[&>td]:bg-base-100' : '[&>td]:bg-base-200/60'
|
i % 2 === 0 ? '[&>td]:bg-base-100' : '[&>td]:bg-base-200/60'
|
||||||
|
|
@ -341,7 +340,8 @@
|
||||||
bind:checked={recordDraft.is_active}
|
bind:checked={recordDraft.is_active}
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
{#if record.record_type === 'A' || record.record_type === "AAAA"}
|
<!-- {#if record.record_type === 'A' || record.record_type === "AAAA"} -->
|
||||||
|
{#if record.record_type === 'A'}
|
||||||
{#if hasToken}
|
{#if hasToken}
|
||||||
<button class="btn text-error" type="button" onclick={() => modal?.showModal()}>Revoke DDNS token</button>
|
<button class="btn text-error" type="button" onclick={() => modal?.showModal()}>Revoke DDNS token</button>
|
||||||
<dialog bind:this={modal} class="modal">
|
<dialog bind:this={modal} class="modal">
|
||||||
|
|
@ -373,10 +373,10 @@
|
||||||
<pre><code>#!/bin/bash</code></pre>
|
<pre><code>#!/bin/bash</code></pre>
|
||||||
<pre><code>IP=$(curl -s http://ipv4.icanhazip.com)</code></pre>
|
<pre><code>IP=$(curl -s http://ipv4.icanhazip.com)</code></pre>
|
||||||
<pre><code>curl -X PUT https://hexname.com/api/v1/ddns/ipv4/{token}/$IP</code></pre>
|
<pre><code>curl -X PUT https://hexname.com/api/v1/ddns/ipv4/{token}/$IP</code></pre>
|
||||||
{:else if record.record_type === 'AAAA'}
|
<!-- {:else if record.record_type === 'AAAA'}
|
||||||
<pre><code>#!/bin/bash</code></pre>
|
<pre><code>#!/bin/bash</code></pre>
|
||||||
<pre><code>IP=$(curl -s http://ipv6.icanhazip.com)</code></pre>
|
<pre><code>IP=$(curl -s http://ipv6.icanhazip.com)</code></pre>
|
||||||
<pre><code>curl -X PUT https://hexname.com/api/v1/ddns/ipv6/{token}/$IP</code></pre>
|
<pre><code>curl -X PUT https://hexname.com/api/v1/ddns/ipv6/{token}/$IP</code></pre> -->
|
||||||
{:else}
|
{:else}
|
||||||
A weird error happened. Please contact support with this screenshot.
|
A weird error happened. Please contact support with this screenshot.
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue