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:
parent
e939a01f06
commit
d5c34adcde
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user