Files
netbird/client/internal/proxy/proxy.go
2023-04-11 17:06:55 +02:00

23 lines
383 B
Go

package proxy
import (
"io"
"net"
)
type Type string
const (
TypeDirectNoProxy Type = "DirectNoProxy"
TypeWireGuard Type = "WireGuard"
TypeDummy Type = "Dummy"
TypeNoProxy Type = "NoProxy"
)
type Proxy interface {
io.Closer
// Start creates a local remoteConn and starts proxying data from/to remoteConn
Start(remoteConn net.Conn) error
Type() Type
}