From d6d8bf561c2e1316d99f3dd4aa8d03aac9068734 Mon Sep 17 00:00:00 2001 From: LL Date: Mon, 29 May 2023 03:21:08 +0900 Subject: [PATCH] fix typo of localhost ip --- src/ts/storage/globalApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/storage/globalApi.ts b/src/ts/storage/globalApi.ts index b49577c0..11864bba 100644 --- a/src/ts/storage/globalApi.ts +++ b/src/ts/storage/globalApi.ts @@ -366,7 +366,7 @@ export async function loadData() { } } -const knownHostes = ["localhost","172.0.0.1","api.openai.com"] +const knownHostes = ["localhost","127.0.0.1","api.openai.com"] export async function globalFetch(url:string, arg:{body?:any,headers?:{[key:string]:string}, rawResponse?:boolean, method?:"POST"|"GET"}) { try {