diff --git a/Sources/tart/Network/Softnet.swift b/Sources/tart/Network/Softnet.swift index 9684e53..712d6e9 100644 --- a/Sources/tart/Network/Softnet.swift +++ b/Sources/tart/Network/Softnet.swift @@ -55,10 +55,6 @@ class Softnet: Network { } static func validateControlFD(_ fd: Int32, type: Int32 = SOCK_STREAM) throws { - guard fd > STDERR_FILENO else { - throw RuntimeError.Generic("must be greater than 2") - } - var socketType: Int32 = 0 var socketTypeLength = socklen_t(MemoryLayout.size) guard getsockopt(fd, SOL_SOCKET, SO_TYPE, &socketType, &socketTypeLength) == 0 else {