mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-05-24 00:24:06 +03:00
Add global setting form
This commit is contained in:
parent
6f8e5cdbca
commit
e99a5ba92b
7 changed files with 240 additions and 1 deletions
14
model/setting.go
Normal file
14
model/setting.go
Normal file
|
@ -0,0 +1,14 @@
|
|||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// GlobalSetting model
|
||||
type GlobalSetting struct {
|
||||
EndpointAddress string `json:"endpoint_address"`
|
||||
DNSServers []string `json:"dns_servers"`
|
||||
MTU int `json:"mtu,string"`
|
||||
PersistentKeepalive int `json:"persistent_keepalive,string"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue