The Netbox source retrieves the devices one page a time. The next page url to fetch is retrieved via the 'next' section of the Netbox response (see Netbox pagination docs).
It may happen that this 'next' section contains a different host or protocol or port if there is a reverse proxy between SuzieQ and Netbox.
This PR substitutes the host, port and protocol of the 'next' url with the host, port and protocol of the previous request.
Type of change
Bug fix (non-breaking change which fixes an issue)
Double Check
[x] I have read the comments and followed the CONTRIBUTING.md.
[x] I have explained my PR according to the information in the comments or in a linked issue.
[x] My PR source branch is created from the develop branch.
Related Issue
Fixes #848
Description
The Netbox source retrieves the devices one page a time. The next page url to fetch is retrieved via the 'next' section of the Netbox response (see Netbox pagination docs). It may happen that this 'next' section contains a different host or protocol or port if there is a reverse proxy between SuzieQ and Netbox.
This PR substitutes the host, port and protocol of the 'next' url with the host, port and protocol of the previous request.
Type of change
Double Check
develop
branch.develop
branch.--signoff
applied