sterrenb / flutterhole

A third party Android application for the Pi-Hole® dashboard.
https://play.google.com/store/apps/details?id=sterrenburg.github.flutterhole
MIT License
401 stars 27 forks source link

Wrong URL used for API calls when using a reverse proxy with a different path #133

Open ravermeister opened 3 years ago

ravermeister commented 3 years ago

Describe the bug When you have reverse proxy configured with a different path than /admin e.g /pihole, you can still see in the API call log that flutterhole sometimes tries to call the API via /admin. (maybe when accessing the API call log view in the app?)

To Reproduce Steps to reproduce the behavior:

  1. Use a reverse proxy for pihole under a different path e.g 192.168.1.10/pihole maps to 192.168.1.20/admin when 192.168.1.20 is your pihole machine.
  2. Use /pihole/api.php as the API path in flutterhole, and configure API key and host 192.168.1.10 in this example
  3. Open the API call list view
  4. See the wrong calls with /admin as path

Expected behavior I would expect only successful API calls with the correct URL /pihole/api.php

Versions (please complete the following information):