Browse Source

Fix bug with showmetrics and get leaner

master
Duke Leto 3 years ago
parent
commit
dc346dd0ab
  1. 2
      index.html
  2. 4
      main.js

2
index.html

@ -172,6 +172,6 @@
</div>
<script src='https://unpkg.com/vue'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script>
<script src='main.js?7'></script>
<script src='main.js?8'></script>
</body>
</html>

4
main.js

@ -87,7 +87,7 @@ new Vue({
+ currentdate.getMinutes() + ":"
+ currentdate.getSeconds()
this.conf =
"# HUSH Configuration File<br /># This file has been automatically generated by Hush Config Generator at https://hush.is/config-generator/ <br /><br /># Creation date: " + compileTime + "<br /><br /># The rpcuser/rpcpassword are used for the local call to hushd. The rpcpassword was randomly set.<br /><br /># Start Hush Configuration<br /><br />daemon=" + this.optionDaemon + "<br />server=" + this.optionServer + "<br />rpcallowip=" + this.optionRpcAllowIp + "<br />rpcuser=" + this.optionRpcUser + "<br />rpcpassword=" + this.optionRpcPassword
"# HUSH Configuration File<br /># Generated by Hush Config Generator at https://hush.is/config-generator/ <br /># Creation date: " + compileTime + "<br /><br /># Hush Full Node Configuration<br /><br />daemon=" + this.optionDaemon + "<br />server=" + this.optionServer + "<br />rpcallowip=" + this.optionRpcAllowIp + "<br />rpcuser=" + this.optionRpcUser + "<br />rpcpassword=" + this.optionRpcPassword
if (this.optionAllowList.length != 0) {
this.conf = this.conf + "<br /><br />allowlist=" + this.optionAllowList
}
@ -115,7 +115,7 @@ new Vue({
if (this.optionTimestampIndex == 1) {
this.conf = this.conf + "<br />timestampindex=1"
}
if (this.optionAddrIndex == 1) {
if (this.optionShowMetrics == 1) {
this.conf = this.conf + "<br /><br />showmetrics=1"
}
for (var i = 0; i< this.peersList.length; i++) {

Loading…
Cancel
Save