diff --git a/app/__init__.py b/app/__init__.py index 67e6b76..f2119f4 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -21,7 +21,7 @@ app.default_key = generate_user_key() app.no_cookie_ips = [] app.config['SECRET_KEY'] = os.urandom(32) app.config['SESSION_TYPE'] = 'filesystem' -app.config['VERSION_NUMBER'] = '0.4.0' +app.config['VERSION_NUMBER'] = '0.4.1' app.config['APP_ROOT'] = os.getenv( 'APP_ROOT', os.path.dirname(os.path.abspath(__file__))) diff --git a/app/request.py b/app/request.py index 4cd9fcf..b4c67dd 100644 --- a/app/request.py +++ b/app/request.py @@ -49,14 +49,13 @@ def send_tor_signal(signal: Signal) -> bool: def gen_user_agent(is_mobile) -> str: - mozilla = random.choice(['Moo', 'Woah', 'Bro', 'Slow']) + 'zilla' firefox = random.choice(['Choir', 'Squier', 'Higher', 'Wire']) + 'fox' linux = random.choice(['Win', 'Sin', 'Gin', 'Fin', 'Kin']) + 'ux' if is_mobile: - return MOBILE_UA.format(mozilla, firefox) + return MOBILE_UA.format("Mozilla", firefox) - return DESKTOP_UA.format(mozilla, linux, firefox) + return DESKTOP_UA.format("Mozilla", linux, firefox) def gen_query(query, args, config, near_city=None) -> str: diff --git a/setup.py b/setup.py index 2bd2d4a..8ef0933 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setuptools.setup( author='Ben Busby', author_email='benbusby@protonmail.com', name='whoogle-search', - version='0.4.0', + version='0.4.1', include_package_data=True, install_requires=requirements, description='Self-hosted, ad-free, privacy-respecting metasearch engine',