aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/version/useragent.go
blob: 83d9da563c893909aec6f0226706ef1ac9e594c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: MIT
 *
 * Copyright (C) 2019 WireGuard LLC. All Rights Reserved.
 */

package version

import (
	"fmt"
	"runtime"

	"golang.zx2c4.com/wireguard/device"
)

func UserAgent() string {
	return fmt.Sprintf("WireGuard/%s (wireguard-go %s; %s; %s; %s)", RunningVersion(), device.WireGuardGoVersion, OsName(), runtime.Version(), runtime.GOARCH)
}