func New(cfg ProxyConfig) (*Proxy, error) {
	if err := cfg.CheckAndSetDefaults(); err != nil {
		return nil, trace.Wrap(err)
	}

	return &Proxy{
		cfg:                cfg,
		log:                cfg.Log,
		supportedProtocols: common.SupportedProtocols,
	}, nil
}
// New creates a new instance of the Proxy.
New creates a new instance of the Proxy.
// New creates a new instance of the Proxy .
func New(cfg ProxyConfig) (*Proxy, error) {
	if err := cfg.CheckAndSetDefaults(); err != nil {
		return nil, trace.Wrap(err)
	}
	return &Proxy{
		cfg:                cfg,
		log:                cfg.Log,
		supportedProtocols: common.SupportedProtocols,
	}, nil
}
func New ( cfg ProxyConfig ) ( * Proxy , error ) { if err := cfg . CheckAndSetDefaults ( ) ; err != nil { return nil , trace . Wrap ( err ) } return & Proxy { cfg : cfg , log : cfg . Log , supportedProtocols : common . SupportedProtocols , } , nil }
New creates a new instance of the Proxy.
New creates a new instance of the Proxy .