hostname -f I guess

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-14 03:10:02 -06:00
parent 4829908013
commit a64605f615
1 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import (
"net/http" "net/http"
"strings" "strings"
"go.wit.com/lib/gui/shell"
"go.wit.com/log" "go.wit.com/log"
) )
@ -21,8 +22,9 @@ func Register(gopath string, giturl string) bool {
req.Header.Set("gopath", gopath) req.Header.Set("gopath", gopath)
req.Header.Set("giturl", giturl) req.Header.Set("giturl", giturl)
req.Header.Set("author", "jcarr") req.Header.Set("author", usr.username)
req.Header.Set("hostname", "hpdev2.wit.com") hostname := shell.RunCapture("hostname -f")
req.Header.Set("hostname", hostname)
client := &http.Client{} client := &http.Client{}
resp, err := client.Do(req) resp, err := client.Do(req)