fix(tunnel): обработка защиты сокетов и стабильность прямого режима

This commit is contained in:
samosvalishe committed 2026-09-07 02:37:54 +03:00
1 parent 67f9a4fe4e
commit 1cc5e93d03
8 files changed
+102 -20

No files matched your search

+3 -2
View File
@@ -28,8 +28,9 @@ func SetProtect(p Protector) {
})
}
func protectFD(fd int) {
func protectFD(fd int) bool {
if p := protector.Load(); p != nil {
(*p).Protect(fd)
return (*p).Protect(fd)
}
return false
}