start dailymotion support, improve vendor support
This commit is contained in:
@@ -18,9 +18,9 @@ type OpenVpnMgt struct {
|
||||
port string
|
||||
m sync.RWMutex
|
||||
debug bool
|
||||
VpnRemotes map[string]*[]string `json:"remotes"`
|
||||
VpnServers map[int]*OpenVpnSrv `json:"sessions"`
|
||||
LastChange time.Time `json:"last_change"`
|
||||
VpnRemotes map[string]*map[string]string `json:"remotes"`
|
||||
VpnServers map[int]*OpenVpnSrv `json:"sessions"`
|
||||
LastChange time.Time `json:"last_change"`
|
||||
}
|
||||
|
||||
// NewServer returns a pointer to a new server
|
||||
@@ -29,7 +29,7 @@ func NewVPNServer(port string, debug bool) *OpenVpnMgt {
|
||||
port: port,
|
||||
debug: debug,
|
||||
VpnServers: make(map[int]*OpenVpnSrv),
|
||||
VpnRemotes: make(map[string]*[]string),
|
||||
VpnRemotes: make(map[string]*map[string]string),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user