added script support in aitm proxy for setting dynamic upstream proxy

Signed-off-by: RonniSkansing <rskansing@gmail.com>
This commit is contained in:
RonniSkansing committed 2026-09-30 23:37:58 +02:00
1 parent f9d4169f90
commit 31bd31ddf2
10 files changed
+276 -12

No files matched your search

+6
View File
@@ -31,6 +31,12 @@ type ProxySession struct {
// client user-agent stored for analytics and logging
UserAgent string
// UpstreamProxy is the forwarding proxy chosen for this session by the
// session script. It is set once when the session is created, before the
// session is stored, and read on every following request to build the
// outbound client. Empty means use the proxy from the yaml config.
UpstreamProxy string
}
// ProxySessionManager manages proxy session lifecycle and storage