mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-29 14:28:09 +02:00
Add peer expiration
This commit is contained in:
parent
2d67540e13
commit
2ecb92eef6
94 changed files with 43258 additions and 49 deletions
|
@ -11,6 +11,8 @@ namespace MTWireGuard.Application.Models.Mikrotik
|
|||
public string? Name { get; set; }
|
||||
public string PrivateKey { get; set; }
|
||||
public string PublicKey { get; set; }
|
||||
public DateTime? Expire { get; set; }
|
||||
public int? ExpireID { get; set; }
|
||||
}
|
||||
|
||||
public class WGPeerViewModel
|
||||
|
@ -28,6 +30,7 @@ namespace MTWireGuard.Application.Models.Mikrotik
|
|||
public long DownloadBytes { get; set; }
|
||||
public long UploadBytes { get; set; }
|
||||
public bool IsDifferent { get; set; }
|
||||
public string Expire { get; set; }
|
||||
}
|
||||
|
||||
public class UserCreateModel
|
||||
|
@ -42,6 +45,7 @@ namespace MTWireGuard.Application.Models.Mikrotik
|
|||
public string PublicKey { get; set; }
|
||||
public string PresharedKey { get; set; }
|
||||
public string PersistentKeepalive { get; set; }
|
||||
public DateTime Expire { get; set; }
|
||||
}
|
||||
|
||||
public class UserSyncModel
|
||||
|
@ -64,5 +68,6 @@ namespace MTWireGuard.Application.Models.Mikrotik
|
|||
public string PrivateKey { get; set; }
|
||||
public string PresharedKey { get; set; }
|
||||
public int PersistentKeepalive { get; set; }
|
||||
public DateTime Expire { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue