Fix a bug I just created

This commit is contained in:
idk
2020-11-11 01:44:09 -05:00
parent 8d4e38ccdf
commit f1fd2f6fb6
10 changed files with 43 additions and 39 deletions

View File

@@ -1,7 +1,9 @@
function routerHost(url) {
console.log('(urlcheck) HANDLER URL CHECK');
let hostname = '';
let path = '';
function pathcheck(str) {
console.log('(urlcheck) HANDLER PATH CHECK', str);
if (str != undefined) {
let final = str.split('/')[0];
if (final === 'i2ptunnelmgr' || final === 'i2ptunnel') {
@@ -11,7 +13,8 @@ function routerHost(url) {
final === 'i2psnark' ||
final === 'torrents' ||
final.startsWith('transmission') ||
final.startsWith('tracker')
final.startsWith('tracker') ||
str.includes(':7662')
) {
console.log('(urlcheck) Torrent application path', final);
return 'i2psnark';