mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-20 21:48:06 +02:00
fix: increase default timeouts and ensure they are applied to XtreamService
This commit is contained in:
1 parent
16b4bfc17a
commit
36a74d9e97
3 files changed
+16
-6
No files matched your search
@@ -69,6 +69,13 @@ class XtreamService {
|
||||
_manualBackendUrl = url;
|
||||
}
|
||||
|
||||
/// Update connection timeouts
|
||||
void updateTimeouts(int seconds) {
|
||||
_dio.options.connectTimeout = Duration(seconds: seconds);
|
||||
_dio.options.receiveTimeout = Duration(seconds: seconds);
|
||||
_dio.options.sendTimeout = Duration(seconds: seconds);
|
||||
}
|
||||
|
||||
/// Wrap URL with proxy for all external IPTV URLs
|
||||
String _wrapWithProxy(String url) {
|
||||
if (url.startsWith('http')) {
|
||||
|
||||
Reference in new issue
Block a user