Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/helper_startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,11 @@ def loadConfig():

def isOurOperatingSystemLimitedToHavingVeryFewHalfOpenConnections():
try:
VER_THIS=StrictVersion(platform.version())
if sys.platform[0:3]=="win":
# This check won't work on BSD platforms, replacing it with
# platform.release() still won't be portable, as e.g. FreeBSD might
# return '11.0-CURRENT'. Leave the version check for Windows only.
VER_THIS=StrictVersion(platform.version())
return StrictVersion("5.1.2600")<=VER_THIS and StrictVersion("6.0.6000")>=VER_THIS
return False
except Exception as err:
Expand Down