socks.go 355 B

123456789101112
  1. package socks
  2. import (
  3. "v2ray.com/core/common"
  4. "v2ray.com/core/common/serial"
  5. "v2ray.com/core/proxy"
  6. )
  7. func init() {
  8. common.Must(proxy.RegisterOutboundHandlerCreator(serial.GetMessageType((*ClientConfig)(nil)), new(ClientFactory)))
  9. common.Must(proxy.RegisterInboundHandlerCreator(serial.GetMessageType((*ServerConfig)(nil)), new(ServerFactory)))
  10. }