Edit the Go file to use a different RSS feed URL in the redirect and restart the server.
Refresh the feed manually on AntennaPod.
The URL will not change in the AntennaPod podcast info, it will keep showing http://localurl:localport, and whenever you change the URL on the server it will keep redirecting to a new feed.
Expected behaviour:
AntennaPod should forget the local LAN URL and assume the URL of the first feed to which it was redirected to as the actual concrete feed URL.
A web browser doesn’t have this behavior, it simply follows the URL in the Location header. I’m not sure why AntennaPod should be expected to deviate from this behavior.
AntennaPod does update the feed URLs on (permanent, not temporary) redirects to ensure that when the old URL is deleted, users still receive episodes.
Does updating help? We are at 2.6 already, and 2.7 is currently starting to roll out.
To me, this sounds like something is wrong with your go code and not with AntennaPod. I don’t know go and don’t have a development environment set up, so it is hard to confirm. Could you somehow host this on a publicly accessible server?
For testing, I usually use this feed: https://tools.bytehamster.com/podcast/redirect.php. It redirects to a new feed address every 5 seconds (containing a different timestamp in the end of the URL).