tor: Reimplement getting ports in Python

This commit is contained in:
Sunil Mohan Adapa committed 2015-07-28 16:40:51 +05:30
1 parent 36adc84b5d
commit 3d5f68381d
3 files changed
+43 -38

No files matched your search

+1 -1
View File
@@ -73,7 +73,7 @@ def index(request):
def get_status():
"""Return the current status"""
output = actions.superuser_run('tor-get-ports')
output = actions.superuser_run('tor', ['get-ports'])
port_info = output.split('\n')
ports = {}
for line in port_info: