diff --git a/peach-web/Cargo.toml b/peach-web/Cargo.toml index 94a7160..7afc5f7 100644 --- a/peach-web/Cargo.toml +++ b/peach-web/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "peach-web" -version = "0.6.15" -authors = ["Andrew Reid "] +version = "0.6.16" +authors = ["Andrew Reid ", "Max Fowler "] 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" diff --git a/peach-web/src/routes/settings/scuttlebutt/configure.rs b/peach-web/src/routes/settings/scuttlebutt/configure.rs index 1a03187..dcba7b4 100644 --- a/peach-web/src/routes/settings/scuttlebutt/configure.rs +++ b/peach-web/src/routes/settings/scuttlebutt/configure.rs @@ -122,6 +122,15 @@ pub fn build_template(request: &Request) -> PreEscaped { 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 { 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(""))