Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release mirror IP to WP Rocket IPs #110

Merged
merged 3 commits into from
Jul 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sources/handlers/ServerListHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def generate_wp_rocket_ips_human_readable(self, app_context):
ovh_ipv6 = ''
for server_name in all_server_list:
display_name = self.ovh_api_factory.get_dedicated_server_display_name(app_context, server_name)
if 'worker' in display_name:
if 'worker' in display_name or 'mirror' in display_name:
server_ips = self.ovh_api_factory.get_dedicated_server_ips(app_context, server_name)
if server_ips is None:
continue
Expand Down Expand Up @@ -191,7 +191,7 @@ def generate_wp_rocket_ipv4_machine_readable(self, app_context):
ovh_ipv4 = ''
for server_name in all_server_list:
display_name = self.ovh_api_factory.get_dedicated_server_display_name(app_context, server_name)
if 'worker' in display_name:
if 'worker' in display_name or 'mirror' in display_name:
server_ips = self.ovh_api_factory.get_dedicated_server_ips(app_context, server_name)
if server_ips is None:
continue
Expand All @@ -213,7 +213,7 @@ def generate_wp_rocket_ipv6_machine_readable(self, app_context):
ovh_ipv6 = ''
for server_name in all_server_list:
display_name = self.ovh_api_factory.get_dedicated_server_display_name(app_context, server_name)
if 'worker' in display_name:
if 'worker' in display_name or 'mirror' in display_name:
server_ips = self.ovh_api_factory.get_dedicated_server_ips(app_context, server_name)
if server_ips is None:
continue
Expand Down
Loading