1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-06 10:16:40 -05:00

fix config in http

This commit is contained in:
v2ray 2016-01-16 13:08:50 +01:00
parent 2d233295e6
commit 48f1d34ca5
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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
})
}