+ Added no response and I'm a Teapot (config file editing only) to default site options
This commit is contained in:
Toby Chui
2024-12-17 22:08:32 +08:00
parent 2423d0fb3a
commit 49555c1191
3 changed files with 37 additions and 0 deletions

View File

@@ -37,6 +37,14 @@
</label>
</div>
</div>
<div class="field">
<div class="ui radio defaultsite checkbox">
<input type="radio" name="defaultsiteOption" value="closeresp">
<label>Close Connection<br>
<small>Close the connection without any response</small>
</label>
</div>
</div>
</div>
</div>
@@ -105,6 +113,8 @@
currentDefaultSiteOption = 2;
}else if (selectedDefaultSite == "notfound"){
currentDefaultSiteOption = 3;
}else if (selectedDefaultSite == "closeresp"){
currentDefaultSiteOption = 4;
}else{
//Unknown option
return;
@@ -137,6 +147,8 @@
$("#redirectDomain").val(data.DefaultSiteValue);
}else if (proxyType == 3){
$radios.filter('[value=notfound]').prop('checked', true);
}else if (proxyType == 4){
$radios.filter('[value=closeresp]').prop('checked', true);
}
updateAvaibleDefaultSiteOptions();