diff --git a/xtrn/wttr.in/locator.js b/xtrn/wttr.in/locator.js index 9ee9dc18eb26cdeee3fbe40f2651fc126b73b13c..dfc065aa452f4b8e870b97438ec5db0a0c1af6e9 100644 --- a/xtrn/wttr.in/locator.js +++ b/xtrn/wttr.in/locator.js @@ -12,7 +12,7 @@ function getAddress() { * * There's a very slim chance of false positives here, but whatever. */ - const f = new File(system.temp_path + 'sbbs-ws-' + client.socket.remote_port + '.ip'); + const f = new File(system.temp_dir + 'sbbs-ws-' + client.socket.remote_port + '.ip'); if (!f.exists) return; if (f.date < client.connect_time) return; // Avoid stale ws ip files if (f.date - client.connect_time > 5) return; // Avoid ws ip files probably not belonging to this user (5 seconds arbitrary) diff --git a/xtrn/wttr.in/wttr-lib.js b/xtrn/wttr.in/wttr-lib.js index 572a284b86141f620debeb642720333f302faf9b..4e25ea1465726e278fbbfa735f96cfcf11c45d16 100644 --- a/xtrn/wttr.in/wttr-lib.js +++ b/xtrn/wttr.in/wttr-lib.js @@ -41,7 +41,7 @@ function uReplace(str) { function getCacheName(url, addr) { const cfn = format('wttr.in_%s%s.ans', url, addr || '').replace(/[^0-9a-z\.]+/ig, '_'); - return system.temp_path + cfn; + return system.temp_dir + cfn; } function readCache(url, addr, ttl) {