mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Merge pull request #63 from flexgrip/master
Add verifySignatures option
This commit is contained in:
commit
0de8b04ee0
@ -114,6 +114,7 @@ Manager.prototype.save = (function () {
|
|||||||
port: server.port,
|
port: server.port,
|
||||||
title: server.title,
|
title: server.title,
|
||||||
von: server.von,
|
von: server.von,
|
||||||
|
verify_signatures: server.verify_signatures,
|
||||||
});
|
});
|
||||||
|
|
||||||
self.serversHash[server.id] = server;
|
self.serversHash[server.id] = server;
|
||||||
|
@ -58,6 +58,7 @@ Server.prototype.update = function (options) {
|
|||||||
this.port = options.port || 2302;
|
this.port = options.port || 2302;
|
||||||
this.title = options.title;
|
this.title = options.title;
|
||||||
this.von = options.von;
|
this.von = options.von;
|
||||||
|
this.verify_signatures = options.verify_signatures;
|
||||||
|
|
||||||
this.id = this.generateId();
|
this.id = this.generateId();
|
||||||
this.port = parseInt(this.port, 10); // If port is a string then gamedig fails
|
this.port = parseInt(this.port, 10); // If port is a string then gamedig fails
|
||||||
@ -121,6 +122,7 @@ Server.prototype.start = function() {
|
|||||||
players: this.max_players,
|
players: this.max_players,
|
||||||
port: this.port,
|
port: this.port,
|
||||||
serverMods: config.serverMods,
|
serverMods: config.serverMods,
|
||||||
|
verifySignatures: this.verify_signatures ? 2 : 0,
|
||||||
});
|
});
|
||||||
server.writeServerConfig();
|
server.writeServerConfig();
|
||||||
var instance = server.start();
|
var instance = server.start();
|
||||||
@ -256,6 +258,7 @@ Server.prototype.toJSON = function () {
|
|||||||
state: this.state,
|
state: this.state,
|
||||||
title: this.title,
|
title: this.title,
|
||||||
von: this.von,
|
von: this.von,
|
||||||
|
verify_signatures: this.verify_signatures,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ define(function (require) {
|
|||||||
state: null,
|
state: null,
|
||||||
title: '',
|
title: '',
|
||||||
von: false,
|
von: false,
|
||||||
|
verify_signatures: false,
|
||||||
},
|
},
|
||||||
urlRoot: '/api/servers/',
|
urlRoot: '/api/servers/',
|
||||||
});
|
});
|
||||||
|
@ -29,6 +29,7 @@ define(function (require) {
|
|||||||
port: this.$("form .port").val(),
|
port: this.$("form .port").val(),
|
||||||
title: this.$("form .title").val(),
|
title: this.$("form .title").val(),
|
||||||
von: this.$("form .von").prop("checked"),
|
von: this.$("form .von").prop("checked"),
|
||||||
|
verify_signatures: this.$("form .verify_signatures").prop("checked"),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -84,4 +84,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-sm-offset-2 col-sm-10">
|
||||||
|
<div class="checkbox">
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" class="verify_signatures" <% if (verify_signatures) { %>checked="checked"<% } %>> Verify Signatures
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
Reference in New Issue
Block a user