Request edit records http request (#253)

This commit is contained in:
wanghongenpin
2024-08-21 01:32:10 +08:00
parent 8078c45d40
commit 3faf91062b
9 changed files with 52 additions and 31 deletions

View File

@@ -37,6 +37,8 @@ Future<void> main() async {
/// 代理服务器
class ProxyServer {
static ProxyServer? current;
//socket服务
Server? server;
@@ -46,7 +48,9 @@ class ProxyServer {
//配置
final Configuration configuration;
ProxyServer(this.configuration);
ProxyServer(this.configuration) {
current = this;
}
//是否启动
bool get isRunning => server?.isRunning ?? false;