Merge pull request 'Configure EBT replication setting' (#118) from enable_ebt_replication into main
Reviewed-on: #118
This commit is contained in:
commit
c71cc3992d
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "peach-web"
|
||||
version = "0.6.15"
|
||||
authors = ["Andrew Reid <gnomad@cryptolab.net>"]
|
||||
version = "0.6.16"
|
||||
authors = ["Andrew Reid <gnomad@cryptolab.net>", "Max Fowler <max@mfowler.info>"]
|
||||
edition = "2018"
|
||||
description = "peach-web is a web application which provides a web interface for monitoring and interacting with the PeachCloud device. This allows administration of the single-board computer (ie. Raspberry Pi) running PeachCloud, as well as the ssb-server and related plugins."
|
||||
homepage = "https://opencollective.com/peachcloud"
|
||||
|
|
|
@ -122,6 +122,15 @@ pub fn build_template(request: &Request) -> PreEscaped<String> {
|
|||
input type="text" id="database_dir" name="repo" value=(sbot_config.repo);
|
||||
}
|
||||
div class="center" {
|
||||
@if sbot_config.enable_ebt {
|
||||
input type="checkbox" id="ebtReplication" style="margin-bottom: 1rem;" name="enable_ebt" checked;
|
||||
} @else {
|
||||
input type="checkbox" id="ebtReplication" style="margin-bottom: 1rem;" name="enable_ebt";
|
||||
}
|
||||
label class="font-normal" for="ebtReplication" title="Enable Epidemic Broadcast Tree (EBT) replication instead of legacy replication" {
|
||||
"Enable EBT Replication"
|
||||
}
|
||||
br;
|
||||
@if sbot_config.localadv {
|
||||
input type="checkbox" id="lanBroadcast" style="margin-bottom: 1rem;" name="localadv" checked;
|
||||
} @else {
|
||||
|
@ -157,7 +166,6 @@ pub fn build_template(request: &Request) -> PreEscaped<String> {
|
|||
input type="hidden" id="hmac" name="hmac" value=(sbot_config.hmac);
|
||||
input type="hidden" id="wslis" name="wslis" value=(sbot_config.wslis);
|
||||
input type="hidden" id="debuglis" name="debuglis" value=(sbot_config.debuglis);
|
||||
input type="hidden" id="enable_ebt" name="enable_ebt" value=(sbot_config.enable_ebt);
|
||||
input type="hidden" id="promisc" name="promisc" value=(sbot_config.promisc);
|
||||
input type="hidden" id="nounixsock" name="nounixsock" value=(sbot_config.nounixsock);
|
||||
(PreEscaped("<!-- BUTTONS -->"))
|
||||
|
|
Loading…
Reference in New Issue