proxy.go 634 B

1234567891011121314151617
  1. // Package proxy contains all proxies used by V2Ray.
  2. package proxy
  3. import (
  4. "github.com/v2ray/v2ray-core/app"
  5. "github.com/v2ray/v2ray-core/proxy/common/connhandler"
  6. "github.com/v2ray/v2ray-core/proxy/internal"
  7. )
  8. func CreateInboundConnectionHandler(name string, space app.Space, rawConfig []byte) (connhandler.InboundConnectionHandler, error) {
  9. return internal.CreateInboundConnectionHandler(name, space, rawConfig)
  10. }
  11. func CreateOutboundConnectionHandler(name string, space app.Space, rawConfig []byte) (connhandler.OutboundConnectionHandler, error) {
  12. return internal.CreateOutboundConnectionHandler(name, space, rawConfig)
  13. }