mirror of
				https://codeberg.org/crimeflare/cloudflare-tor
				synced 2025-11-04 10:27:05 +01:00 
			
		
		
		
	Catch when SocksPort is empty.
This commit is contained in:
		
							parent
							
								
									215003d8dc
								
							
						
					
					
						commit
						7772796770
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -371,7 +371,10 @@ def main(args=[]):
 | 
			
		|||
    # TODO implement authentication token / cookie
 | 
			
		||||
    controller = Controller.from_port(port = options.a_controlport)
 | 
			
		||||
    controller.authenticate()
 | 
			
		||||
    if controller.get_conf('SocksPort'):
 | 
			
		||||
        STATUS['socksport'] = controller.get_conf('SocksPort').split(" ",1)[0]
 | 
			
		||||
    else:
 | 
			
		||||
        STATUS['socksport'] = 9050
 | 
			
		||||
    controller.close()
 | 
			
		||||
 | 
			
		||||
    config = cp.ConfigParser()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue