Skip to content

Commit

Permalink
Include RpcPort field in the server status endpoint response
Browse files Browse the repository at this point in the history
  • Loading branch information
alborrajo committed Dec 14, 2024
1 parent 1c40aed commit bf33ff1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Arrowgene.Ddon.Rpc.Web/Route/ServerStatusRoute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class ServerStatus
public uint LoginNum { get; set; }
public string Addr { get; set; }
public ushort Port { get; set; }
public ushort RpcPort { get; set; }
public bool IsHide { get; set; }

public ServerStatus()
Expand All @@ -42,6 +43,7 @@ public ServerStatus()
LoginNum = 0;
Addr = "";
Port = 0;
RpcPort = 0;
IsHide = false;
}
}
Expand Down Expand Up @@ -73,6 +75,7 @@ public override RpcCommandResult Execute(DdonGameServer gameServer)
LoginNum = (uint)connections.Count(x => x.ServerId == server.Id && x.Type == ConnectionType.GameServer),
Addr = server.Addr,
Port = server.Port,
RpcPort = server.RpcPort,
IsHide = server.IsHide
});
}
Expand Down

0 comments on commit bf33ff1

Please sign in to comment.