mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-21 01:36:46 +00:00
Separate proxy from wg peer config
This commit is contained in:
12
client/internal/peer/proxy.go
Normal file
12
client/internal/peer/proxy.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package peer
|
||||
|
||||
import (
|
||||
"io"
|
||||
"net"
|
||||
)
|
||||
|
||||
type proxy interface {
|
||||
io.Closer
|
||||
// Start creates a local remoteConn and starts proxying data from/to remoteConn
|
||||
Start(remoteConn net.Conn) error
|
||||
}
|
||||
Reference in New Issue
Block a user