Fixed issue with matching wild card

This commit is contained in:
2026-07-10 00:13:40 -04:00
parent 655aeb47a2
commit 56c2fb1a5c
6 changed files with 62 additions and 2 deletions
+16
View File
@@ -148,6 +148,18 @@
}
}
function hostClearCache(btn){
let $btn = $(btn);
$btn.prop('disabled', true);
app.host.clearCache(function(error, data){
$btn.prop('disabled', false);
if(error){
return app.util.actionMessage(error.message || error, $.scope.hosts.$this, 'danger');
}
app.util.actionMessage(data.message, $.scope.hosts.$this, 'success');
});
}
async function hostMatchWildcard(host){
try{
let res = await app.api.get(`host/lookup/${host}`);
@@ -446,6 +458,10 @@
Proxy List
</span>
<span class="float-end">
<button type="button" class="btn btn-sm btn-outline-secondary me-2" onclick="hostClearCache(this)" title="Clear cached wildcard subdomain lookups">
<i class="fa-solid fa-broom"></i>
Clear Cache
</button>
<i class="fa-solid fa-circle-minus"></i>
</span>
</div>