// NewTCPProxy creates a new tcp proxy
NewTCPProxy creates a new tcp proxy
// NewTCPProxy creates a new tcp proxy
func NewTCPProxy(p TCPProxy) (*TCPProxy, error) {
	remote, err := net.ResolveTCPAddr("tcp", p.Remote)
	if err != nil {
		return nil, err
	}
	p.remote = remote
	return &p, nil
}
func NewTCPProxy ( p TCPProxy ) ( * TCPProxy , error ) { remote , err := net . ResolveTCPAddr ( " " , p . Remote ) if err != nil { return nil , err } p . remote = remote return & p , nil }
NewTCPProxy creates a new tcp proxy
NewTCPProxy creates a new tcp proxy