about summary refs log tree commit diff
path: root/htping.go
diff options
context:
space:
mode:
Diffstat (limited to 'htping.go')
-rw-r--r--htping.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/htping.go b/htping.go
index 79dfcfd..c9034f7 100644
--- a/htping.go
+++ b/htping.go
@@ -27,6 +27,8 @@ import (
 	"time"
 )
 
+const VERSION = "0.1"
+
 var ntotal int32
 
 var flag4 bool
@@ -128,6 +130,8 @@ func ping(url string, seq int, results chan result) {
 		return
 	}
 
+	req.Header.Set("User-Agent", "htping/" + VERSION)
+
 	for _, e := range myHeaders {
 		req.Header.Set(e.key, e.value)
 	}