diff options
| author | Jeff Carr <[email protected]> | 2024-11-15 19:52:46 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-15 19:52:46 -0600 |
| commit | 0700306530e9d88420c326c9899ddc098b2fb450 (patch) | |
| tree | 0ec70e243e99440e9ea7cb20aff361ad7233e5ae | |
| parent | 1e9ee55a8e098ada869fd5870c2eed9938421485 (diff) | |
jesus. magic in 6 lines
| -rw-r--r-- | send.go | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 |
