Reputation: 11
I downloaded the wireguard-windows repository and I navigated to this path
wireguard-windows/tunnel/winipcfg/types.go
in this types.go file I found this function:
// FriendlyName method returns a user-friendly name for the adapter. For example: "Local Area Connection 1."
// This name appears in contexts such as the ipconfig command line program and the Connection folder.
func (addr *IPAdapterAddresses) FriendlyName() string {
if addr.friendlyName == nil {
return ""
}
return windows.UTF16PtrToString(addr.friendlyName)
}
When creating a connection in this Wireguard desktop app it's creating a network adapter with the name "Wireguard Tunnel", is there a way to change it?
Upvotes: 0
Views: 354
Reputation: 1125
It's not something related to Go. It's more about Windows: ns-iptypes-ip_adapter_addresses_lh You can change friendly name in Windows registry as far as I know.
Upvotes: 0