33 lines
828 B
C#
33 lines
828 B
C#
using System.Net;
|
|
|
|
namespace ET
|
|
{
|
|
public partial class StartProcessConfig
|
|
{
|
|
public string InnerIP => this.StartMachineConfig.InnerIP;
|
|
|
|
public string OuterIP => this.StartMachineConfig.OuterIP;
|
|
|
|
// 内网地址外网端口,通过防火墙映射端口过来
|
|
private IPEndPoint ipEndPoint;
|
|
|
|
public IPEndPoint IPEndPoint
|
|
{
|
|
get
|
|
{
|
|
if (ipEndPoint == null)
|
|
{
|
|
this.ipEndPoint = NetworkHelper.ToIPEndPoint(this.InnerIP, this.Port);
|
|
}
|
|
|
|
return this.ipEndPoint;
|
|
}
|
|
}
|
|
|
|
public StartMachineConfig StartMachineConfig => StartMachineConfigCategory.Instance.Get(this.MachineId);
|
|
|
|
public override void EndInit()
|
|
{
|
|
}
|
|
}
|
|
} |