diff --git a/proxy/http/http.go b/proxy/http/http.go index c4066f6a6..c191e1b12 100644 --- a/proxy/http/http.go +++ b/proxy/http/http.go @@ -21,11 +21,11 @@ type HttpProxyServer struct { sync.Mutex accepting bool space app.Space - config Config + config *Config tcpListener *net.TCPListener } -func NewHttpProxyServer(space app.Space, config Config) *HttpProxyServer { +func NewHttpProxyServer(space app.Space, config *Config) *HttpProxyServer { return &HttpProxyServer{ space: space, config: config, diff --git a/proxy/http/http_factory.go b/proxy/http/http_factory.go index 0f4e810bd..565845bdc 100644 --- a/proxy/http/http_factory.go +++ b/proxy/http/http_factory.go @@ -9,6 +9,6 @@ import ( func init() { internal.MustRegisterInboundConnectionHandlerCreator("http", func(space app.Space, rawConfig interface{}) (proxy.InboundConnectionHandler, error) { - return NewHttpProxyServer(space, rawConfig.(Config)), nil + return NewHttpProxyServer(space, rawConfig.(*Config)), nil }) }