diff options
Diffstat (limited to 'tun/wintun/ring_windows.go')
-rw-r--r-- | tun/wintun/ring_windows.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tun/wintun/ring_windows.go b/tun/wintun/ring_windows.go index 4d2fab6..ed460fb 100644 --- a/tun/wintun/ring_windows.go +++ b/tun/wintun/ring_windows.go @@ -103,8 +103,8 @@ func (descriptor *RingDescriptor) Close() { } } -func (wintun *Interface) Register(descriptor *RingDescriptor) (windows.Handle, error) { - handle, err := wintun.handle() +func (wintun *Adapter) Register(descriptor *RingDescriptor) (windows.Handle, error) { + handle, err := wintun.OpenAdapterDeviceObject() if err != nil { return 0, err } |