[PR #14] [MERGED] Add support for follow redirect and custom host #21

Closed
opened 2026-03-01 14:36:00 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/alpkeskin/rota/pull/14
Author: @seudnuredin
Created: 4/6/2025
Status: Merged
Merged: 4/7/2025
Merged by: @alpkeskin

Base: mainHead: host-and-follow-redirect-support


📝 Commits (1)

  • cd26980 Add support for follow redirect and custom host

📊 Changes

6 files changed (+28 additions, -6 deletions)

View changed files

📝 README.md (+2 -0)
📝 config.yml (+2 -0)
📝 internal/config/schema.go (+2 -0)
📝 internal/proxy/proxy.go (+6 -3)
📝 internal/proxy/proxy_rotation.go (+15 -3)
📝 internal/proxy/proxy_types.go (+1 -0)

📄 Description

Hi alpkeskin, Thanks for this great tool.

I noticed an issue with automatic redirect following, which is also problematic for me. so, I made it optional via the config file.

I didn't want the proxy server to always bind to all network interfaces, so I modified it to bind to a specific host defined in the config file.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/alpkeskin/rota/pull/14 **Author:** [@seudnuredin](https://github.com/seudnuredin) **Created:** 4/6/2025 **Status:** ✅ Merged **Merged:** 4/7/2025 **Merged by:** [@alpkeskin](https://github.com/alpkeskin) **Base:** `main` ← **Head:** `host-and-follow-redirect-support` --- ### 📝 Commits (1) - [`cd26980`](https://github.com/alpkeskin/rota/commit/cd26980af9f19cbac405d8d9eed1347127b572c5) Add support for follow redirect and custom host ### 📊 Changes **6 files changed** (+28 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+2 -0) 📝 `config.yml` (+2 -0) 📝 `internal/config/schema.go` (+2 -0) 📝 `internal/proxy/proxy.go` (+6 -3) 📝 `internal/proxy/proxy_rotation.go` (+15 -3) 📝 `internal/proxy/proxy_types.go` (+1 -0) </details> ### 📄 Description Hi alpkeskin, Thanks for this great tool. I noticed an [issue](https://github.com/alpkeskin/rota/issues/13) with automatic redirect following, which is also problematic for me. so, I made it optional via the config file. I didn't want the proxy server to always bind to all network interfaces, so I modified it to bind to a specific host defined in the config file. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 14:36:00 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rota#21
No description provided.