|
| 1 | +# |
| 2 | +"""""" |
| 3 | +import os.path |
| 4 | +import click |
| 5 | + |
| 6 | +default = { |
| 7 | + 'data_dir': click.get_app_dir('bwscanner'), |
| 8 | + 'measurement_dir': os.path.join(click.get_app_dir('bwscanner'), |
| 9 | + 'measurements'), |
| 10 | + 'tor_dir': os.path.join(click.get_app_dir('bwscanner'), |
| 11 | + 'tordata'), |
| 12 | + 'logfile': os.path.join(click.get_app_dir('bwscanner'), |
| 13 | + 'bwscanner.log'), |
| 14 | + 'loglevel': 'debug', |
| 15 | + 'baseurl': 'https://siv.sunet.se/bwauth/', |
| 16 | + 'launch_tor': True, |
| 17 | + 'circuit_build_timeout': 20, |
| 18 | + 'partitions': 1, |
| 19 | + 'current_partition': 1, |
| 20 | + 'timeout': 120, |
| 21 | + 'request_limit': 10 |
| 22 | +} |
| 23 | +bw_files = { |
| 24 | + 64*1024: ("64M", "6258de4f4d602be75a3458117b29d2c580c4bcb7ba5b9d2c4135c7603109f554"), |
| 25 | + 32*1024: ("32M", "5a5d66d7865f09498d776f20c9e9791b055a4fff357185f84fb4ecfca7da93f0"), |
| 26 | + 16*1024: ("(16M", "6258de4f4d602be75a3458117b29d2c580c4bcb7ba5b9d2c4135c7603109f554"), |
| 27 | + 8*1024: ("8M", "738c5604295b9377f7636ce0c2c116f093bb50372f589a6c2332a3bb6bba096a"), |
| 28 | + 4*1024: ("4M", "4daaa42377d3c87577797d44a8fa569038e7a9d6a5d417a09d8ba41a69456164"), |
| 29 | + 2*1024: ("2M", "3e39b0bb92912cf1ad6c01fb7c9d592e814a691c61de1f649416f6bba2d15082"), |
| 30 | +} |
| 31 | +TOR_OPTIONS = { |
| 32 | + 'LearnCircuitBuildTimeout': 0, # Disable adaptive circuit timeouts. |
| 33 | + 'CircuitBuildTimeout': 20, |
| 34 | + 'UseEntryGuards': 0, # Disable UseEntryGuards to avoid PathBias warnings. |
| 35 | + 'UseMicroDescriptors': 0, |
| 36 | + 'FetchUselessDescriptors': 1, |
| 37 | + 'FetchDirInfoEarly': 1, |
| 38 | + 'FetchDirInfoExtraEarly': 1, |
| 39 | + 'SafeLogging': 0, |
| 40 | + 'LogTimeGranularity': 1, |
| 41 | +} |
0 commit comments