mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-10-24 01:03:20 +08:00
daemon: use per-interface features
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
19
pkg/daemon/feature/epdisc/proxy/proxy.go
Normal file
19
pkg/daemon/feature/epdisc/proxy/proxy.go
Normal file
@@ -0,0 +1,19 @@
|
||||
// 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
|
||||
}
|
Reference in New Issue
Block a user