FastTunnel/FastTunnel.Core/Models/ForwardConfig.cs

39 lines
969 B
C#
Raw Permalink Normal View History

2022-01-02 00:23:39 +08:00
// Licensed under the Apache License, Version 2.0 (the "License").
// You may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// https://github.com/FastTunnel/FastTunnel/edit/v2/LICENSE
// Copyright (c) 2019 Gui.H
2019-12-21 13:43:28 +08:00
namespace FastTunnel.Core.Models
{
2021-08-01 18:32:32 +08:00
public class ForwardConfig
2019-12-21 13:43:28 +08:00
{
/// <summary>
/// 局域网IP地址
/// </summary>
public string LocalIp { get; set; }
/// <summary>
/// 局域网ssh端口号
/// </summary>
public int LocalPort { get; set; } = 22;
/// <summary>
/// 服务端监听的端口号 1~65535
/// </summary>
public int RemotePort { get; set; }
2022-11-11 22:31:27 +08:00
2021-11-13 22:42:13 +08:00
/// <summary>
/// 协议,内网服务监听的协议
/// </summary>
public ProtocolEnum Protocol { get; set; }
}
public enum ProtocolEnum
{
TCP = 0,
UDP = 1,
2019-12-21 13:43:28 +08:00
}
}