mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-17 22:57:10 +00:00
barely working http proxy
This commit is contained in:
1 parent
d0a75ce9f3
commit
e12e5a0ecb
10 files changed
+139
-31
No files matched your search
@@ -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{})
|
||||
}
|
||||
Reference in new issue
Block a user