From 14199d588ee25fd09726b65217f4def4723792c8 Mon Sep 17 00:00:00 2001
From: Jeff Carr <jcarr@wit.com>
Date: Fri, 24 May 2019 01:17:37 -0700
Subject: [PATCH] better VM page handling

Signed-off-by: Jeff Carr <jcarr@wit.com>
---
 main.go | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/main.go b/main.go
index 98d8ac3..f417a35 100644
--- a/main.go
+++ b/main.go
@@ -11,6 +11,9 @@ import "runtime/debug"
 import "github.com/gookit/config"
 import "github.com/gobuffalo/packr"
 
+// will try to get this hosts FQDN
+import "github.com/Showmax/go-fqdn"
+
 // import "github.com/golang/protobuf/proto"
 import pb "git.wit.com/wit/witProtobuf"
 
@@ -95,10 +98,12 @@ func main() {
 	gui.Data.Height		= config.Int("height")
 
 	// TODO: figure out the hostname the right way
-	gui.Data.Hostname	= "librem15.lab.wit.com"
+	hostname := fqdn.Get()
+	log.Println("fqdn.Get() = ", hostname)
+	gui.Data.Hostname	= hostname
 	gui.Data.IPv6		= "2604:bbc0:3:3:0:10:0:1004"
 
-	gui.Data.Version	= "v0.5"
+	gui.Data.Version	= "v0.6"
 	gui.Data.GitCommit	= GITCOMMIT
 	gui.Data.GoVersion	= GOVERSION
 	gui.Data.Buildtime	= BUILDTIME