diff options
Diffstat (limited to 'settings.py')
-rw-r--r-- | settings.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/settings.py b/settings.py new file mode 100644 index 0000000..499b32b --- /dev/null +++ b/settings.py @@ -0,0 +1,11 @@ +default_settings = '''route_tor = False +port_number = 80 +allow_foreign_addresses = False +''' +exec(default_settings) +try: + with open('settings.txt', 'r', encoding='utf-8') as file: + exec(file.read()) +except FileNotFoundError: + with open('settings.txt', 'a', encoding='utf-8') as file: + file.write(default_settings)
\ No newline at end of file |