Merge pull request #238 from gnh1201/dev

Forward Whois and DNS query data to LLM services
This commit is contained in:
Namhyeon Go 2025-04-12 14:34:59 +09:00 committed by GitHub
commit 8341394912
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,7 +80,7 @@
<span class="icon mif-earth"></span>
<span class="caption">DNS</span>
</button>
<span class="title">Network</span>
<span class="title">Network tools</span>
</div>
</div>
</div>
@ -371,6 +371,7 @@
axios.get(`${serverPrefix}whois/${hostname}`).then(response => {
const responseText = DOMPurify.sanitize(response.data, { ALLOWED_TAGS: [], ALLOWED_ATTR: [] });
appendTextToEditor(`/*\n${responseText}\n*/`);
pushPromptMessage("system", responseText);
}).catch(error => {
console.error(error);
});
@ -386,6 +387,7 @@
axios.get(`${serverPrefix}dns-query/${hostname}`).then(response => {
const responseText = response.data;
appendTextToEditor(`/*\n${responseText}\n*/`);
pushPromptMessage("system", responseText);
}).catch(error => {
console.error(error);
});