Add PostUp and PostDown script for clients interface

This commit is contained in:
kevin 2022-08-28 14:09:52 +08:00
parent efbc36d61f
commit 05cfe56ab9
5 changed files with 43 additions and 3 deletions

View file

@ -17,6 +17,8 @@ type Client struct {
ExtraAllowedIPs []string `json:"extra_allowed_ips"`
UseServerDNS bool `json:"use_server_dns"`
Enabled bool `json:"enabled"`
PostUp string `json:"post_up"`
PostDown string `json:"post_down"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}