AUTH-2694 added destination header support to config file

This commit is contained in:
Dalton
2020-06-12 11:57:21 -05:00
parent 55acf7283c
commit 1a6403b2fd
2 changed files with 6 additions and 0 deletions

View File

@@ -37,6 +37,10 @@ func StartForwarder(forwarder config.Forwarder, shutdown <-chan struct{}, logger
headers.Set(h2mux.CFAccessClientSecretHeader, forwarder.TokenSecret)
}
if forwarder.Destination != "" {
headers.Add(h2mux.CFJumpDestinationHeader, forwarder.Destination)
}
options := &carrier.StartOptions{
OriginURL: forwarder.URL,
Headers: headers, //TODO: TUN-2688 support custom headers from config file