cmd/ctrld: workaround staticcheck complain on non-Linux OSes

This commit is contained in:
Cuong Manh Le
2023-08-10 00:44:36 +07:00
committed by Cuong Manh Le
parent 829e93c079
commit 2bcba7b578

View File

@@ -332,6 +332,8 @@ func errAddrInUse(err error) bool {
return false
}
var _ = errAddrInUse
// https://learn.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2
var (
windowsECONNREFUSED = syscall.Errno(10061)