From 2623741ef2ca9a9f5a4992114788eab1434154a1 Mon Sep 17 00:00:00 2001 From: Henry Camacho Date: Sat, 25 Mar 2017 20:43:31 -0500 Subject: [PATCH] Added Missing Domain --- rvpn/genericlistener/api_collect_domains.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rvpn/genericlistener/api_collect_domains.go b/rvpn/genericlistener/api_collect_domains.go index b8f5a28..b08d863 100644 --- a/rvpn/genericlistener/api_collect_domains.go +++ b/rvpn/genericlistener/api_collect_domains.go @@ -26,6 +26,7 @@ func NewDomainServerAPI(domain string, conn *Connection) (p *DomainServerAPI) { //DomainAPI -- Container for domain and related servers type DomainAPI struct { + DomainName string `json:"domain_name"` TotalServers int `json:"server_total"` Servers []*DomainServerAPI `json:"servers"` Traffic TrafficAPI `json:"traffic"` @@ -34,6 +35,7 @@ type DomainAPI struct { //NewDomainAPI -- Constructor func NewDomainAPI(domain string, domainLoadBalance *DomainLoadBalance) (p *DomainAPI) { p = new(DomainAPI) + p.DomainName = domain for pos := range domainLoadBalance.connections { ds := NewDomainServerAPI(domain, domainLoadBalance.connections[pos]) p.Servers = append(p.Servers, ds)