add interface for socks config

This commit is contained in:
v2ray committed 2015-12-03 22:41:06 +01:00
1 parent 73807390f1
commit f69b83f3e6
9 files changed
+32 -14

No files matched your search

+2 -2
View File
@@ -3,14 +3,14 @@ package socks
import (
"github.com/v2ray/v2ray-core/app"
"github.com/v2ray/v2ray-core/proxy/common/connhandler"
"github.com/v2ray/v2ray-core/proxy/socks/config/json"
"github.com/v2ray/v2ray-core/proxy/socks/config"
)
type SocksServerFactory struct {
}
func (this SocksServerFactory) Create(dispatcher app.PacketDispatcher, rawConfig interface{}) (connhandler.InboundConnectionHandler, error) {
return NewSocksServer(dispatcher, rawConfig.(*json.SocksConfig)), nil
return NewSocksServer(dispatcher, rawConfig.(config.SocksConfig)), nil
}
func init() {