fix(tunnel): обработка защиты сокетов и стабильность прямого режима
This commit is contained in:
1 parent
67f9a4fe4e
commit
1cc5e93d03
8 files changed
+102
-20
No files matched your search
+3
-2
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user