// Copyright (c) 2016-present Cloud <cloud@txthinking.com>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 3 of the GNU General Public
// License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

// +build !linux

package brook

import (
	"crypto/x509"
	"errors"
)

// Tproxy.
type Tproxy struct {
}

// NewTproxy.
func NewTproxy(addr, server, password string, enableIPv6 bool, cidr4url, cidr6url string, tcpTimeout, udpTimeout int, address string, insecure, withoutbrook bool, roots *x509.CertPool, udpovertcp bool) (*Tproxy, error) {
	return nil, errors.New("Only support Linux")
}

func (s *Tproxy) RunAutoScripts() error {
	return nil
}

func (s *Tproxy) ClearAutoScripts() error {
	return nil
}

// Run server.
func (s *Tproxy) ListenAndServe() error {
	return nil
}

// Shutdown server.
func (s *Tproxy) Shutdown() error {
	return nil
}
