Skip to content

Commit

Permalink
取消服务API固定端口,采用随机端口
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleafgo committed Nov 17, 2023
1 parent e8b69ab commit def6de4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/app/utils/constants.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:math';

/// 常量类
class Constants {
/// 开源地址
Expand Down Expand Up @@ -26,7 +28,8 @@ class Constants {

static const localhost = "127.0.0.1";

static const port = "9090";
/// 采用随机端口
static final port = Random().nextInt(1000) + 10000;

/// 日志最大容量
static const logsCapacity = 1000;
Expand Down

0 comments on commit def6de4

Please sign in to comment.