Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit e37f293

Browse files
committed
fix build flags
1 parent 2aa2e5e commit e37f293

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

cmd/rtrdump/rtrdump.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ import (
1919
)
2020

2121
const (
22-
version = ""
23-
buildinfos = ""
24-
AppVersion = "RTRdump " + version + " " + buildinfos
25-
2622
ENV_SSH_PASSWORD = "RTR_SSH_PASSWORD"
2723
ENV_SSH_KEY = "RTR_SSH_KEY"
2824

@@ -32,6 +28,10 @@ const (
3228
)
3329

3430
var (
31+
version = ""
32+
buildinfos = ""
33+
AppVersion = "RTRdump " + version + " " + buildinfos
34+
3535
Connect = flag.String("connect", "127.0.0.1:8282", "Connection address")
3636
OutFile = flag.String("file", "output.json", "Output file")
3737

cmd/rtrmon/rtrmon.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ import (
2525
)
2626

2727
const (
28-
version = ""
29-
buildinfos = ""
30-
AppVersion = "RTRmon " + version + " " + buildinfos
31-
3228
ENV_SSH_PASSWORD = "RTR_SSH_PASSWORD"
3329
ENV_SSH_KEY = "RTR_SSH_KEY"
3430

@@ -38,6 +34,10 @@ const (
3834
)
3935

4036
var (
37+
version = ""
38+
buildinfos = ""
39+
AppVersion = "RTRmon " + version + " " + buildinfos
40+
4141
OneOff = flag.Bool("oneoff", false, "dump as json and exits")
4242
Addr = flag.String("addr", ":8080", "Server address")
4343
MetricsPath = flag.String("metrics", "/metrics", "Metrics path")

0 commit comments

Comments
 (0)