Skip to content

Commit bcea673

Browse files
committed
fix(LauncherOptions): 为InnerPort属性添加默认值8888
添加默认值以确保在没有显式配置时使用合理的默认端口号
1 parent 991948e commit bcea673

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

GameFrameX.StartUp/Options/LauncherOptions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ public sealed class LauncherOptions
266266
/// 内部端口
267267
/// </summary>
268268
[Option(nameof(InnerPort), Description = "内部端口")]
269+
[DefaultValue(8888)]
269270
// [GrafanaLokiLabelTag]
270271
public ushort InnerPort { get; set; }
271272

0 commit comments

Comments
 (0)