Socks supports multiple accounts

This commit is contained in:
V2Ray committed 2015-10-10 15:51:35 +02:00
1 parent 7cce04cc3a
commit 213aa2ecf0
5 files changed
+44 -14

No files matched your search

+4 -2
View File
@@ -8,8 +8,10 @@ import (
type SocksServerFactory struct {
}
func (factory SocksServerFactory) Create(vp *core.Point, config interface{}) (core.InboundConnectionHandler, error) {
return NewSocksServer(vp, config.(*json.SocksConfig)), nil
func (factory SocksServerFactory) Create(vp *core.Point, rawConfig interface{}) (core.InboundConnectionHandler, error) {
config := rawConfig.(*json.SocksConfig)
config.Initialize()
return NewSocksServer(vp, config), nil
}
func init() {