Use timestamp for domain
This commit is contained in:
parent
9bf92fb547
commit
1037e70462
@ -10,9 +10,10 @@ exports = module.exports = {
|
|||||||
verifyResponse: verifyResponse
|
verifyResponse: verifyResponse
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var gNow = (new Date()).getTime().toString();
|
||||||
|
|
||||||
function cloudronDomain(filename) {
|
function cloudronDomain(filename) {
|
||||||
var r = (Math.random() * 1000).toFixed();
|
return 't-' + path.basename(filename, '-test.js') + '-' + gNow + '.smartserver.io';
|
||||||
return 't-' + path.basename(filename, '-test.js') + '-' + r + '.smartserver.io';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function verifyResponse(res, errorMessage) {
|
function verifyResponse(res, errorMessage) {
|
||||||
|
Loading…
Reference in New Issue
Block a user