new: add warp fake packet delay, add warp detour, add new ipinfo api

This commit is contained in:
Hiddify
2024-02-21 20:03:20 +01:00
parent 1fcd9cdbef
commit b16295bee5
9 changed files with 83 additions and 5 deletions

View File

@@ -77,7 +77,11 @@ class DioHttpClient with InfraLogger {
url,
path,
cancelToken: cancelToken,
options: _options(url, userAgent: userAgent, credentials: credentials),
options: _options(
url,
userAgent: userAgent,
credentials: credentials,
),
);
}
@@ -104,6 +108,8 @@ class DioHttpClient with InfraLogger {
headers: {
if (userAgent != null) "User-Agent": userAgent,
if (basicAuth != null) "authorization": basicAuth,
// "Accept": "application/json",
// "Content-Type": "application/json",
},
);
}