opt: check private key size

This commit is contained in:
lollipopkit
2023-02-17 16:29:46 +08:00
parent 99aa0fc1f5
commit 0c198c23fc
11 changed files with 141 additions and 99 deletions

View File

@@ -52,7 +52,6 @@ class ServerProvider extends BusyProvider {
if (s.cs != ServerState.failed) return;
_limiter.resetTryTimes(s.spi.id);
}
if (onlyFailed && s.cs != ServerState.failed) return;
await _getData(s.spi);
}));
}

View File

@@ -2,8 +2,9 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 220;
static const String engine = "Flutter 3.7.3 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision 9944297138 (7 days ago) • 2023-02-08 15:46:04 -0800\nEngine • revision 248290d6d5\nTools • Dart 2.19.2 • DevTools 2.20.1\n";
static const String buildAt = "2023-02-16 12:58:28.193531";
static const int modifications = 3;
static const int build = 221;
static const String engine =
"Flutter 3.7.3 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision 9944297138 (8 days ago) • 2023-02-08 15:46:04 -0800\nEngine • revision 248290d6d5\nTools • Dart 2.19.2 • DevTools 2.20.1\n";
static const String buildAt = "2023-02-17 15:57:59.844806";
static const int modifications = 2;
}

View File

@@ -1 +1,4 @@
final numReg = RegExp(r'\s{1,}');
/// Private Key max allowed size is 20kb
const privateKeyMaxSize = 20 * 1024;