test
This commit is contained in:
@@ -781,7 +781,7 @@ minisrv-no-mail-count: true`;
|
|||||||
else console.log(" * " + ((ssl) ? "SSL " : "") + "PC request on service " + original_service_name + " (Service Vault " + service_name + ") for " + request_headers.request_url, 'on', socket.id);
|
else console.log(" * " + ((ssl) ? "SSL " : "") + "PC request on service " + original_service_name + " (Service Vault " + service_name + ") for " + request_headers.request_url, 'on', socket.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((shortURL.indexOf(':/') >= 0) && (shortURL.indexOf('://') == -1 || (shortURL.indexOf('://') && (shortURL.startsWith("irc") || shortURL.startsWith("wtvchat"))))) {
|
if ((shortURL.indexOf(':/') >= 0) && (shortURL.indexOf('://') == -1 || (shortURL.indexOf('://') && minisrv_config.services[service_name].allow_double_slash) {
|
||||||
var ssid = socket.ssid;
|
var ssid = socket.ssid;
|
||||||
if (ssid == null) {
|
if (ssid == null) {
|
||||||
// prevent possible injection attacks via malformed SSID and filesystem SessionStore
|
// prevent possible injection attacks via malformed SSID and filesystem SessionStore
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ if (messenger_email && messenger_password) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
request2.on('error', (error) => {
|
request2.on('error', (error) => {
|
||||||
|
data = "200: OK";
|
||||||
console.error(' *** Error (Stage 1)', error);
|
console.error(' *** Error (Stage 1)', error);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -53,7 +54,10 @@ if (messenger_email && messenger_password) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
request.on('error', (error) => {
|
request.on('error', (error) => {
|
||||||
|
data = "200: OK";
|
||||||
console.error(' *** Error (Stage 1)', error);
|
console.error(' *** Error (Stage 1)', error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
data = "200: OK";
|
||||||
}
|
}
|
||||||
@@ -219,15 +219,19 @@
|
|||||||
"connections": 3
|
"connections": 3
|
||||||
},
|
},
|
||||||
"wtvchat": {
|
"wtvchat": {
|
||||||
"port": 1630,
|
// wtvchat://server:port/channel passthrough (wni official)
|
||||||
"nobind": true,
|
|
||||||
"flags": "0x00000004"
|
|
||||||
},
|
|
||||||
"irc": {
|
|
||||||
"port": 1630,
|
"port": 1630,
|
||||||
"nobind": true,
|
"nobind": true,
|
||||||
"flags": "0x00000004",
|
"flags": "0x00000004",
|
||||||
"servicevault_dir": "wtvchat"
|
"allow_double_slash": true // allows service:// .. don't enable on http or https
|
||||||
|
},
|
||||||
|
"irc": {
|
||||||
|
// irc://server:port/channel passthrough (something wni should have had...)
|
||||||
|
"port": 1630,
|
||||||
|
"nobind": true,
|
||||||
|
"flags": "0x00000004",
|
||||||
|
"servicevault_dir": "wtvchat", // share service_vault with wtvchat
|
||||||
|
"allow_double_slash": true // allows service:// .. don't enable on http or https
|
||||||
},
|
},
|
||||||
"wtv-disk": {
|
"wtv-disk": {
|
||||||
// wtv-disk (used for DiskMaps)
|
// wtv-disk (used for DiskMaps)
|
||||||
@@ -305,10 +309,10 @@
|
|||||||
"force_https": false,
|
"force_https": false,
|
||||||
"https_cert": {
|
"https_cert": {
|
||||||
/* self-signed, can be replaced with another cert */
|
/* self-signed, can be replaced with another cert */
|
||||||
// "domain": "mycooldomain.com",
|
// "domain": "mycooldomain.com",
|
||||||
"cert": "%ServiceDeps%/https/selfsigned_cert.pem",
|
"cert": "%ServiceDeps%/https/selfsigned_cert.pem",
|
||||||
"key": "%ServiceDeps%/https/selfsigned_key.pem"
|
"key": "%ServiceDeps%/https/selfsigned_key.pem"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"favorites": {
|
"favorites": {
|
||||||
|
|||||||
Reference in New Issue
Block a user