From 0700306530e9d88420c326c9899ddc098b2fb450 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 15 Nov 2024 19:52:46 -0600 Subject: [PATCH] jesus. magic in 6 lines --- send.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/send.go b/send.go index 74640e6..c861c4e 100644 --- a/send.go +++ b/send.go @@ -15,8 +15,14 @@ func send() { func pingStatus() error { var url string - url = urlbase + "/status" - body, err := httpPost(url, nil) + url = urlbase + "/status?hostname=stuff" + msg, err := me.packages.Marshal() + if err != nil { + log.Info("proto.Marshal() failed:", err) + return err + } + log.Info("proto Marshal len =", len(msg)) + body, err := httpPost(url, msg) if err != nil { log.Info("httpPost() failed:", err) return err