fix(tests): compatibility fixes

This commit is contained in:
Frog Rocky authored and Yaroslav Gurov committed 2026-04-27 13:08:28 +02:00
1 parent 68e519c963
commit 8d2de9eb72
1 file changed
+2 -1
+2 -1
View File
@@ -6,6 +6,7 @@
package ipc
import (
"errors"
"net"
"github.com/amnezia-vpn/amneziawg-go/ipc/namedpipe"
@@ -69,7 +70,7 @@ func UAPIListen(name string) (net.Listener, error) {
listener, err := (&namedpipe.ListenConfig{
SecurityDescriptor: UAPISecurityDescriptor,
}).Listen(path)
if err == windows.ERROR_INVALID_OWNER {
if errors.Is(err, windows.ERROR_INVALID_OWNER) {
listener, err = (&namedpipe.ListenConfig{
SecurityDescriptor: UAPIFallbackSecurityDescriptor,
}).Listen(path)