summaryrefslogtreecommitdiff
path: root/cmd/bitmask-helper/main.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-04-21 19:56:39 +0200
committerkali kaneko (leap communications) <kali@leap.se>2020-04-30 22:10:22 +0200
commitd46ac15fbe1b7509ca7a28ef4a8062a1bacef070 (patch)
tree994259b8671132cd2cad1ed2a98d1b6365be5cef /cmd/bitmask-helper/main.go
parent210ea87c05a30d53ca2f96a8082d50cb422b76ce (diff)
[feat] handle version
Diffstat (limited to 'cmd/bitmask-helper/main.go')
-rw-r--r--cmd/bitmask-helper/main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/bitmask-helper/main.go b/cmd/bitmask-helper/main.go
index de180ab..3d19046 100644
--- a/cmd/bitmask-helper/main.go
+++ b/cmd/bitmask-helper/main.go
@@ -1,4 +1,4 @@
-// Copyright (C) 2018 LEAP
+// Copyright (C) 2018-2020 LEAP
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -28,6 +28,8 @@ const (
logFile = "helper.log"
)
+var version string
+
func main() {
logger, err := config.ConfigureLogger(path.Join(helper.LogFolder, logFile))
if err != nil {
@@ -35,6 +37,7 @@ func main() {
} else {
defer logger.Close()
}
+ config.Version = version
helper.ServeHTTP(preferredPort)
}