Prefer http over https for the debug interface to ease up things

This is meant for local debugging only anyways and people seem
to struggle with accepting self signed certs.
This commit is contained in:
Michael Zanetti 2019-04-23 17:19:30 +02:00
parent e939a01f06
commit d5c34adcde

View File

@ -17,9 +17,13 @@ Page {
var tmp = engine.nymeaConfiguration.webServerConfigurations.get(i)
print("checking config:", tmp.id, tmp.address, tmp.port, tmp.sslEnabled)
if (tmp.address === engine.connection.currentConnection.hostAddress || tmp.address === "0.0.0.0") {
if (config === null || (!config.sslEnabled && tmp.sslEnabled)) {
config = tmp;
// This one prefers https over http...
// if (config === null || (!config.sslEnabled && tmp.sslEnabled)) {
// ...but for now, prefer http because some things won't work with self signed certs etc...
if (config === null || (config.sslEnabled && !tmp.sslEnabled)) {
config = tmp;
}
continue;
}