summaryrefslogtreecommitdiff
path: root/hostname.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-03-09 14:21:34 -0600
committerJeff Carr <[email protected]>2023-03-09 14:21:34 -0600
commit0b26e5f1ca6807a1bc3fc6c365d449c5f6a4a866 (patch)
tree008f9f3c5a54f21874c0ff4dc5dfd0daab7b7c64 /hostname.go
parent3ce3a39226bd6c0e738cdf76a55b05be1bad3cc3 (diff)
hostname actually set
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'hostname.go')
-rw-r--r--hostname.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/hostname.go b/hostname.go
index 98c9f49..9f5a66f 100644
--- a/hostname.go
+++ b/hostname.go
@@ -18,13 +18,19 @@ import "git.wit.org/jcarr/dnssecsocket"
func getHostname() {
var err error
- me.fqdn, err = fqdn.FqdnHostname()
+ var s string = "gui.Label == nil"
+ s, err = fqdn.FqdnHostname()
if (err != nil) {
log("FQDN hostname error =", err)
exit()
return
}
- log("FQDN hostname is", me.fqdn)
+ if (me.fqdn != nil) {
+ // s = me.fqdn.GetText()
+ output("trying to update gui.Label", true)
+ me.fqdn.SetText(s)
+ }
+ output("FQDN = jcarr" + s + "\n", true)
}
func dnsAAAA(s string) []string {