mirror of
https://github.com/fatedier/frp.git
synced 2025-07-27 07:35:07 +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