Browse Source

中控端口可配置

skyfffire 2 years ago
parent
commit
36dad994cf
2 changed files with 4 additions and 0 deletions
  1. 2 0
      config.toml.sample
  2. 2 0
      global/src/params.rs

+ 2 - 0
config.toml.sample

@@ -24,3 +24,5 @@ place_order_limit = 0
 colo = 0
 # 日志级别,从低到高依次是:[trace, debug, info, warn, error]
 log_level = "info"
+# 中控端口
+port = 6000

+ 2 - 0
global/src/params.rs

@@ -50,6 +50,8 @@ pub struct Params {
     pub colo: i8,
     // 日志级别,从低到高依次是:[trace, debug, info, warn, error]
     pub log_level: String,
+    // 中控端口
+    pub port: u32,
 }
 
 impl Params {