Changeset - 9f47162bea1e
[Not reviewed]
default
0 1 0
Dennis Fink - 11 years ago 2013-11-18 21:19:14
dennis.fink@c3l.lu
updated ennstatus
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
Scripts/update_server.py
Show inline comments
 
@@ -58,25 +58,25 @@ def get_server_type(tor_config):
 
    elif 'ExitPolicy reject *:*' in tor_config:
 
        return 'Relay', None
 
    else:
 
        return 'Exit', None
 

	
 

	
 
def get_ip(tor_config):
 

	
 
    for i in tor_config:
 
        match = IP_REGEX.match(i)
 

	
 
        if match is not None:
 
            return i.groups()[1]
 
            return match.groups()[1]
 

	
 
    return None
 

	
 
def get_config():
 

	
 
    config = configparser.ConfigParser()
 
    config.read('/etc/ennstatus_updater.conf')
 

	
 
    return config
 

	
 

	
 
def create_server_json(tor_configfile='/etc/tor/torrc', name='tor'):
0 comments (0 inline, 0 general)