mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2025-04-16 14:06:54 +02:00
tun: windows: expose GUID
This commit is contained in:
parent
967d1a0f3d
commit
d435be35ca
1 changed files with 4 additions and 0 deletions
|
@ -350,3 +350,7 @@ func (tun *NativeTun) Write(buff []byte, offset int) (int, error) {
|
|||
// Flush write buffer.
|
||||
return len(buff) - offset, tun.flush()
|
||||
}
|
||||
|
||||
func (tun *NativeTun) GUID() windows.GUID {
|
||||
return *(*windows.GUID)(tun.wt)
|
||||
}
|
Loading…
Add table
Reference in a new issue