Skip to content

Commit

Permalink
Ensure we use the short hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
droyo committed Jul 26, 2016
1 parent 268c8ac commit 41a0c22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ func main() {
})

Hostname, err = os.Hostname()
Hostname = strings.SplitN(Hostname, ".", 1)[0]
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 41a0c22

Please sign in to comment.