2016-10-31 14:24:28 +00:00
|
|
|
package shadowsocks
|
|
|
|
|
|
|
|
import (
|
2016-12-15 10:51:09 +00:00
|
|
|
"v2ray.com/core/common/serial"
|
2016-12-15 14:46:20 +00:00
|
|
|
"v2ray.com/core/proxy"
|
2016-10-31 14:24:28 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
// Must happen after config is initialized
|
2016-12-15 14:46:20 +00:00
|
|
|
proxy.MustRegisterOutboundHandlerCreator(serial.GetMessageType(new(ClientConfig)), new(ClientFactory))
|
|
|
|
proxy.MustRegisterInboundHandlerCreator(serial.GetMessageType(new(ServerConfig)), new(ServerFactory))
|
2016-10-31 14:24:28 +00:00
|
|
|
}
|