fixed vanity not working and added integration test for it
This commit is contained in:
		
							parent
							
								
									6b5e6a9ad0
								
							
						
					
					
						commit
						34a55f63f9
					
				
					 5 changed files with 49 additions and 3 deletions
				
			
		|  | @ -55,6 +55,8 @@ def block_exec(event, info): | |||
|                         'multiprocessing/popen_fork.py', | ||||
|                         'multiprocessing/util.py', | ||||
|                         'multiprocessing/connection.py', | ||||
|                         'multiprocessing/queues.py', | ||||
|                         'multiprocessing/synchronize.py', | ||||
|                         'onionrutils/escapeansi.py', | ||||
|                         'stem/connection.py', | ||||
|                         'stem/response/add_onion.py', | ||||
|  | @ -64,9 +66,12 @@ def block_exec(event, info): | |||
|                         'stem/response/mapaddress.py', | ||||
|                         'stem/response/protocolinfo.py' | ||||
|                        ] | ||||
|     whitelisted_source = [] | ||||
|     home = identifyhome.identify_home() | ||||
| 
 | ||||
|     code_b64 = base64.b64encode(info[0].co_code).decode() | ||||
|     if code_b64 in whitelisted_source: | ||||
|         return | ||||
| 
 | ||||
|     for source in whitelisted_code: | ||||
|         if info[0].co_filename.endswith(source): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue