mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
update termux doc
This commit is contained in:
parent
33d2db03b7
commit
3239bb8dec
9 changed files with 79 additions and 26 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue