mirror of
https://github.com/fatedier/frp.git
synced 2026-01-11 22:23:12 +00:00
http: support setting headers
This commit is contained in:
@@ -225,6 +225,7 @@ type HttpProxy struct {
|
||||
func (pxy *HttpProxy) Run() (remoteAddr string, err error) {
|
||||
routeConfig := vhost.VhostRouteConfig{
|
||||
RewriteHost: pxy.cfg.HostHeaderRewrite,
|
||||
Headers: pxy.cfg.Headers,
|
||||
Username: pxy.cfg.HttpUser,
|
||||
Password: pxy.cfg.HttpPwd,
|
||||
CreateConnFn: pxy.GetRealConn,
|
||||
|
||||
Reference in New Issue
Block a user