blob: 951d2731368d11d7ce441e6ef21e918344ad09af (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* SPDX-License-Identifier: MIT
*
* Copyright (C) 2019 WireGuard LLC. All Rights Reserved.
*/
package version
// #include "../version.h"
import "C"
import (
"fmt"
"golang.zx2c4.com/wireguard/device"
"runtime"
)
const WireGuardWindowsVersion = C.WIREGUARD_WINDOWS_VERSION
func UserAgent() string {
return fmt.Sprintf("WireGuard/%s (wireguard-go %s; %s; %s; %s)", WireGuardWindowsVersion, device.WireGuardGoVersion, OsName(), runtime.Version(), runtime.GOARCH)
}
|