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






                                                         

             


                 




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

package version

import (
	"fmt"
	"runtime"
)

// #include "version.h"
import "C"

const Number = C.WIREGUARD_WINDOWS_VERSION_STRING

func UserAgent() string {
	return fmt.Sprintf("WireGuard/%s (%s; %s)", Number, OsName(), runtime.GOARCH)
}