Files
cunicu/pkg/daemon/feature/epdisc/proxy/proxy.go
Steffen Vogel 92a7ad2f7f daemon: use per-interface features
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2022-10-07 18:30:50 +02:00

20 lines
421 B
Go

// Package proxy provides tooling for transparently proxying STUN/TURN trafic between ICE agents and kernel/userspace WireGuard interfaces
package proxy
import (
"io"
"net"
"github.com/pion/ice/v2"
protoepdisc "github.com/stv0g/cunicu/pkg/proto/feature/epdisc"
)
type Proxy interface {
io.Closer
UpdateCandidatePair(cp *ice.CandidatePair, conn *ice.Conn) (*net.UDPAddr, error)
Type() protoepdisc.ProxyType
}