aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/version/useragent.go
blob: 321bc0a6de5aae5e8ea29f2655ec415c5af39ddf (plain) (tree)
1
2
3
4
5
6
7






                                                         





                                           
                         
                                                                                                                                                                  
 
/* SPDX-License-Identifier: MIT
 *
 * Copyright (C) 2019 WireGuard LLC. All Rights Reserved.
 */

package version

import (
	"fmt"
	"golang.zx2c4.com/wireguard/device"
	"runtime"
)

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