Empty strings as default values for J1-3,I1-5,Itime.
Helps to filter unneeded parameters.pull/1152/head
parent
fcdf569575
commit
44dd3ac1da
|
|
@ -32,15 +32,15 @@ class AmneziaConfiguration(WireguardConfiguration):
|
|||
self.H2 = 2
|
||||
self.H3 = 3
|
||||
self.H4 = 4
|
||||
self.I1 = "0"
|
||||
self.I2 = "0"
|
||||
self.I3 = "0"
|
||||
self.I4 = "0"
|
||||
self.I5 = "0"
|
||||
self.J1 = "0"
|
||||
self.J2 = "0"
|
||||
self.J3 = "0"
|
||||
self.Itime = "0"
|
||||
self.I1 = ""
|
||||
self.I2 = ""
|
||||
self.I3 = ""
|
||||
self.I4 = ""
|
||||
self.I5 = ""
|
||||
self.J1 = ""
|
||||
self.J2 = ""
|
||||
self.J3 = ""
|
||||
self.Itime = ""
|
||||
|
||||
super().__init__(DashboardConfig, AllPeerJobs, AllPeerShareLinks, DashboardWebHooks, name, data, backup, startup, wg=False)
|
||||
|
||||
|
|
|
|||
|
|
@ -49,15 +49,15 @@ export default {
|
|||
H2: 0,
|
||||
H3: 0,
|
||||
H4: 0,
|
||||
I1: "0",
|
||||
I2: "0",
|
||||
I3: "0",
|
||||
I4: "0",
|
||||
I5: "0",
|
||||
J1: "0",
|
||||
J2: "0",
|
||||
J3: "0",
|
||||
Itime: "0"
|
||||
I1: "",
|
||||
I2: "",
|
||||
I3: "",
|
||||
I4: "",
|
||||
I5: "",
|
||||
J1: "",
|
||||
J2: "",
|
||||
J3: "",
|
||||
Itime: ""
|
||||
},
|
||||
numberOfAvailableIPs: "0",
|
||||
error: false,
|
||||
|
|
@ -75,11 +75,6 @@ export default {
|
|||
['H1', 'H2', 'H3', 'H4'].forEach(key => {
|
||||
this.newConfiguration[key] = this.rand(1, 2**31);
|
||||
});
|
||||
|
||||
// Initialize I1 to I5 as "0"
|
||||
['I1', 'I2', 'I3', 'I4', 'I5'].forEach(key => {
|
||||
this.newConfiguration[key] = "0";
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
rand(min, max){
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue