commit b9446bdbb6df24fb0f042852a42e4d548c993263
Author: Damian Johnson <[email protected]>
Date: Tue Oct 11 09:10:40 2011 -0700
Restricting OpenBSD to lsof connection resolution
Linux resolvers naturally fail on OpenBSD. I'm not sure if the bsd variants
of
procstat/sockstat are installable (they're definitely not around by
default) so
falling back ot only lsof like macs. Thanks to a test system from Jordi
Espasa
Clofent.
---
src/util/connections.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/util/connections.py b/src/util/connections.py
index 9350cb8..250b113 100644
--- a/src/util/connections.py
+++ b/src/util/connections.py
@@ -337,7 +337,7 @@ def getSystemResolvers(osType = None):
if osType == "FreeBSD":
resolvers = [Resolver.BSD_SOCKSTAT, Resolver.BSD_PROCSTAT, Resolver.LSOF]
- elif osType == "Darwin":
+ elif osType in ("OpenBSD", "Darwin"):
resolvers = [Resolver.LSOF]
else:
resolvers = [Resolver.NETSTAT, Resolver.SOCKSTAT, Resolver.LSOF,
Resolver.SS]
_______________________________________________
tor-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits