summaryrefslogtreecommitdiff
path: root/send.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-21 19:48:09 -0600
committerJeff Carr <[email protected]>2024-11-21 19:48:09 -0600
commit22d49578c99e7c77ca7f6bd4691e3d88a7cfc7f5 (patch)
treebf72bc245dccbd82beca9e77130e9b0f5bfa1db0 /send.go
parentf5144e4b8ae85d86e7d8172b2aa9d6b3da3e8835 (diff)
Diffstat (limited to 'send.go')
-rw-r--r--send.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/send.go b/send.go
index e82e42d..bd9c9e1 100644
--- a/send.go
+++ b/send.go
@@ -12,7 +12,7 @@ import (
func pingStatus() error {
var url string
- url = me.urlbase + "/status?hostname=" + me.hostname
+ url = me.urlbase + "/status?hostname=" + me.machine.Hostname
msg, err := me.machine.Packages.Marshal()
if err != nil {
log.Info("proto.Marshal() failed:", err)
@@ -68,7 +68,7 @@ func sendMachine(s string) error {
os.Exit(0)
} else {
log.Info(me.urlbase, "is maybe not working GOT:", line)
- log.Info(me.urlbase, "fail count", me.failcount, "from hostname", me.hostname)
+ log.Info(me.urlbase, "fail count", me.failcount, "from hostname", me.machine.Hostname)
}
}
return nil