barely working http proxy

This commit is contained in:
v2ray committed 2015-12-15 16:00:47 +01:00
1 parent d0a75ce9f3
commit e12e5a0ecb
10 files changed
+139 -31

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
package http
import (
"github.com/v2ray/v2ray-core/app"
"github.com/v2ray/v2ray-core/proxy/common/connhandler"
)
type HttpProxyServerFactory struct {
}
func (this HttpProxyServerFactory) Create(space app.Space, rawConfig interface{}) (connhandler.InboundConnectionHandler, error) {
return NewHttpProxyServer(space, rawConfig.(Config)), nil
}
func init() {
connhandler.RegisterInboundConnectionHandlerFactory("http", HttpProxyServerFactory{})
}