update termux doc

This commit is contained in:
James Feng Cao 2023-08-20 09:11:48 +08:00
parent 33d2db03b7
commit 3239bb8dec
9 changed files with 79 additions and 26 deletions

View file

@ -93,7 +93,9 @@ export default {
const url = request.url;
let iSlash = url.indexOf('/',11);
let nUrl = url.substring(iSlash+1);
if(!nUrl.startsWith(SYDNEY_ORIGIN))
let iColon = nUrl.indexOf(':',3)+3;
if(!nUrl.startsWith('syndey.bing.com',iColon) &&
!nUrl.startsWith('www.bing.com/turing',iColon))
return await goUrl(request, nUrl);
const targetUrl = new URL(nUrl);