This commit is contained in:
ChsBuffer
2021-03-28 03:32:14 +08:00
parent 6c668684e9
commit ba17366094
3 changed files with 2 additions and 9 deletions

View File

@@ -5,8 +5,6 @@ namespace Netch.Models
{
public interface IAdapter
{
string AdapterId { get; }
int InterfaceIndex { get; }
IPAddress Gateway { get; }

View File

@@ -29,9 +29,7 @@ namespace Netch.Models
Logging.Info($"出口适配器:{NetworkInterface.Name} {NetworkInterface.Id} {NetworkInterface.Description}, index: {InterfaceIndex}");
}
public IPAddress Address { get; set; }
public string AdapterId => throw new NotImplementedException();
public IPAddress Address { get; }
/// <summary>
/// 索引

View File

@@ -1,8 +1,6 @@
using System;
using System.Linq;
using System.Linq;
using System.Net;
using System.Net.NetworkInformation;
using Netch.Controllers;
using Netch.Interops;
using Netch.Utils;
@@ -19,7 +17,6 @@ namespace Netch.Models
Logging.Info($"WinTUN 适配器:{NetworkInterface.Name} {NetworkInterface.Id} {NetworkInterface.Description}, index: {InterfaceIndex}");
}
public string AdapterId => throw new NotImplementedException();
public int InterfaceIndex { get; }