introduce app.Space

This commit is contained in:
v2ray committed 2015-12-05 22:55:45 +01:00
1 parent db7d48e48f
commit 15e6e6d80c
11 files changed
+68 -39

No files matched your search

+2 -2
View File
@@ -9,8 +9,8 @@ import (
type SocksServerFactory struct {
}
func (this SocksServerFactory) Create(dispatcher app.PacketDispatcher, rawConfig interface{}) (connhandler.InboundConnectionHandler, error) {
return NewSocksServer(dispatcher, rawConfig.(config.SocksConfig)), nil
func (this SocksServerFactory) Create(space *app.Space, rawConfig interface{}) (connhandler.InboundConnectionHandler, error) {
return NewSocksServer(space, rawConfig.(config.SocksConfig)), nil
}
func init() {