mirror of
https://github.com/h44z/wg-portal.git
synced 2026-12-05 19:56:06 +01:00
feat: add support for AmneziaWG (#649)
This commit is contained in:
@@ -3,10 +3,11 @@ package domain
|
||||
// ControllerType defines the type of controller used to manage interfaces.
|
||||
|
||||
const (
|
||||
ControllerTypeMikrotik = "mikrotik"
|
||||
ControllerTypeLocal = "wgctrl"
|
||||
ControllerTypePfsense = "pfsense"
|
||||
ControllerTypeOpnsense = "opnsense"
|
||||
ControllerTypeMikrotik = "mikrotik"
|
||||
ControllerTypeLocal = "wgctrl"
|
||||
ControllerTypeAmneziaWG = "amneziawg"
|
||||
ControllerTypePfsense = "pfsense"
|
||||
ControllerTypeOpnsense = "opnsense"
|
||||
)
|
||||
|
||||
// Controller extras can be used to store additional information available for specific controllers only.
|
||||
@@ -17,6 +18,10 @@ type MikrotikInterfaceExtras struct {
|
||||
Disabled bool
|
||||
}
|
||||
|
||||
type AmneziaWGInterfaceExtras struct {
|
||||
Options AmneziaWGOptions
|
||||
}
|
||||
|
||||
type MikrotikPeerExtras struct {
|
||||
Id string // internal mikrotik ID
|
||||
Name string
|
||||
|
||||
Reference in New Issue
Block a user