summaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-01-28 17:23:39 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-01-28 17:23:39 +0100
commitbf3bb888512e74bee0b79bd38826cb019ca2a0ee (patch)
tree5554c1a901300698237ade32c8e90092aefafb20 /main.go
parent6a128dde71d925fd4865ebd86855213a429b4729 (diff)
device: remove version string
This is what modules are for, and Go binaries can introspect. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 40c8070..721a2ed 100644
--- a/main.go
+++ b/main.go
@@ -55,7 +55,7 @@ func warning() {
func main() {
if len(os.Args) == 2 && os.Args[1] == "--version" {
- fmt.Printf("wireguard-go v%s\n\nUserspace WireGuard daemon for %s-%s.\nInformation available at https://www.wireguard.com.\nCopyright (C) Jason A. Donenfeld <Jason@zx2c4.com>.\n", device.WireGuardGoVersion, runtime.GOOS, runtime.GOARCH)
+ fmt.Printf("wireguard-go v%s\n\nUserspace WireGuard daemon for %s-%s.\nInformation available at https://www.wireguard.com.\nCopyright (C) Jason A. Donenfeld <Jason@zx2c4.com>.\n", Version, runtime.GOOS, runtime.GOARCH)
return
}
@@ -141,7 +141,7 @@ func main() {
fmt.Sprintf("(%s) ", interfaceName),
)
- logger.Verbosef("Starting wireguard-go version %s", device.WireGuardGoVersion)
+ logger.Verbosef("Starting wireguard-go version %s", Version)
if err != nil {
logger.Errorf("Failed to create TUN device: %v", err)