summaryrefslogtreecommitdiff
path: root/cmd/bitmask-helper/main.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-02-27 18:06:22 +0100
committerkali kaneko (leap communications) <kali@leap.se>2020-04-30 22:10:16 +0200
commit79b2cf15c8d563dc5a3ea589ea1c4a29ee1315e8 (patch)
tree31a4b799028f0dbc5ea5b2a7e0285e41d8b97a8e /cmd/bitmask-helper/main.go
parentd1bbf9609672409120c23f989c1298fbb8b66152 (diff)
[feat] listen on available port
Diffstat (limited to 'cmd/bitmask-helper/main.go')
-rw-r--r--cmd/bitmask-helper/main.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/cmd/bitmask-helper/main.go b/cmd/bitmask-helper/main.go
index ce32b4e..de180ab 100644
--- a/cmd/bitmask-helper/main.go
+++ b/cmd/bitmask-helper/main.go
@@ -24,8 +24,8 @@ import (
)
const (
- bindAddr = "localhost:7171"
- logFile = "helper.log"
+ preferredPort = 7171
+ logFile = "helper.log"
)
func main() {
@@ -36,6 +36,5 @@ func main() {
defer logger.Close()
}
- helper.ServeHTTP(bindAddr)
-
+ helper.ServeHTTP(preferredPort)
}