diff options
Diffstat (limited to 'register.go')
| -rw-r--r-- | register.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/register.go b/register.go index c57c550..66f3419 100644 --- a/register.go +++ b/register.go @@ -4,10 +4,10 @@ import ( "bytes" "io/ioutil" "net/http" + "os" "os/user" "strings" - "go.wit.com/lib/gui/shell" "go.wit.com/log" ) @@ -25,7 +25,7 @@ func Register(gopath string, giturl string) bool { req.Header.Set("giturl", giturl) usr, _ := user.Current() req.Header.Set("author", usr.Username) - hostname := shell.RunCapture("hostname -f") + hostname, _ := os.Hostname() req.Header.Set("hostname", hostname) client := &http.Client{} |
