Have old getBaseHost function removed. It was replaced by getServiceByHost.

This commit is contained in:
Alexander Andreev 2021-02-16 01:45:11 +04:00
parent 2d6f74e692
commit 682cb65feb
Signed by: Arav
GPG Key ID: 610DF2574456329F

View File

@ -35,15 +35,6 @@ exports.getServiceByHost = (host, service="") => {
}
}
exports.getBaseHost = (host) => {
if (host.endsWith("onion"))
return `http://moq7aejnf4xk5k2bkaltli3ftkhusy2mbrd3pj23nrca343ku2mgk4yd.onion`;
else if (host.endsWith("i2p"))
return `http://t42fkp6zp5dfqywantq3zp427ig3q2onrmfv246tyaztpg4ckb5a.b32.i2p`;
else
return "https://arav.top";
}
exports.getTimezone = getTimezone;
exports.formats = formats;
exports.datetime = datetime;