From 7c02449c71229811ff2d823eb2ef4ea2e3b793c2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 11 Jan 2024 22:30:47 -0600 Subject: api update Signed-off-by: Jeff Carr --- api.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'api.go') diff --git a/api.go b/api.go index 7185c94..d356c36 100644 --- a/api.go +++ b/api.go @@ -23,22 +23,22 @@ func DoChange() *RRT { dnsRow = new(RRT) log.Log(INFO, "DoChange() START") - if (CFdialog.proxyNode.S == "On") { + if (CFdialog.proxyNode.GetText() == "On") { dnsRow.Proxied = true } else { dnsRow.Proxied = false } - dnsRow.Auth = CFdialog.apiNode.S - dnsRow.Email = CFdialog.emailNode.S + dnsRow.Auth = CFdialog.apiNode.GetText() + dnsRow.Email = CFdialog.emailNode.GetText() - dnsRow.Domain = CFdialog.zoneNode.S - dnsRow.ZoneID = CFdialog.zoneIdNode.S - dnsRow.ID = CFdialog.rrNode.S + dnsRow.Domain = CFdialog.zoneNode.GetText() + dnsRow.ZoneID = CFdialog.zoneIdNode.GetText() + dnsRow.ID = CFdialog.rrNode.GetText() - dnsRow.Content = CFdialog.ValueNode.S - dnsRow.Name = CFdialog.NameNode.S - dnsRow.Type = CFdialog.TypeNode.S - dnsRow.url = CFdialog.urlNode.S + dnsRow.Content = CFdialog.ValueNode.GetText() + dnsRow.Name = CFdialog.NameNode.GetText() + dnsRow.Type = CFdialog.TypeNode.GetText() + dnsRow.url = CFdialog.urlNode.GetText() dnsRow.data = makeJSON(dnsRow) // show the JSON @@ -55,7 +55,7 @@ func DoChange() *RRT { func SetRow(dnsRow *RRT) { log.Log(INFO, "Look for changes in row", dnsRow.ID) if (CFdialog.proxyNode != nil) { - log.Log(INFO, "Proxy", dnsRow.Proxied, "vs", CFdialog.proxyNode.S) + log.Log(INFO, "Proxy", dnsRow.Proxied, "vs", CFdialog.proxyNode.GetText()) if (dnsRow.Proxied == true) { CFdialog.proxyNode.SetText("On") } else { @@ -73,7 +73,7 @@ func SetRow(dnsRow *RRT) { CFdialog.rrNode.SetText(dnsRow.ID) } if (CFdialog.ValueNode != nil) { - log.Log(INFO, "Content", dnsRow.Content, "vs", CFdialog.ValueNode.S) + log.Log(INFO, "Content", dnsRow.Content, "vs", CFdialog.ValueNode.GetText()) CFdialog.ValueNode.SetText(dnsRow.Content) } if (CFdialog.NameNode != nil) { -- cgit v1.2.3