mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-02-12 03:05:45 -05:00
fix config in http
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user