Skip to content

Commit 0262a87

Browse files
committed
feat(instance): 添加基础端口配置字段
在 InstanceConfig 模型中新增 basePort 字段,用于分配起始端口。 每次新增实例时,该端口会递增分配。 同时更新项目版本号从 0.1.8.b3 到 0.1.8.b4。
1 parent 2d69561 commit 0262a87

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

mcsmapi/models/instance.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ class InstanceConfig(BaseModel):
119119
"""服务器 Ping 监测配置(已弃用)"""
120120
runAs: str = ""
121121
"""运行该实例的系统用户,为空则使用启动面板的系统用户"""
122+
basePort: int = 0
123+
"""分配的起始端口,这个数字对应 到 的变量,每次新增实例都会递增分配"""
122124

123125

124126
class InstanceDetail(BaseModel):

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ requires = ["setuptools", "wheel"]
44

55
[project]
66
name = "mcsmapi"
7-
version = "0.1.8.b3"
7+
version = "0.1.8.b4"
88
description = "Shortcut the pypi package of MCSM./快捷操作MCSM的pypi包"
99
readme = "README.md"
1010
authors = [

0 commit comments

Comments
 (0)