shapeshifter

package module
Version: v0.0.0-...-a222fa2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2022 License: BSD-2-Clause, BSD-3-Clause Imports: 11 Imported by: 1

README

ShapeShifter library

Heavily based on the shapeshifter-dispatcher: https://github.com/OperatorFoundation/shapeshifter-dispatcher/

To use it:

	ss := ShapeShifter{
		Cert:      "cert",
		Target:    "ip:port",
		SocksAddr: "127.0.0.1:4430",
	}
	err := ss.Open()
	if err != nil {
		return err
	}
	defer ss.Close()

And now you can tunnel your protocol into 127.0.0.1:4430.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Log(msg string)
}

type ShapeShifter

type ShapeShifter struct {
	Cert      string
	IatMode   int
	Target    string // remote ip:port obfs4 server
	SocksAddr string // -proxylistenaddr in shapeshifter-dispatcher
	Logger    Logger
	// contains filtered or unexported fields
}

func (*ShapeShifter) Close

func (ss *ShapeShifter) Close() error

func (*ShapeShifter) GetErrorChannel

func (ss *ShapeShifter) GetErrorChannel() chan error

func (*ShapeShifter) Open

func (ss *ShapeShifter) Open() error

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL