mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Eliminate separate WebRTCPeer.Connect method.
Do it as a side effect of NewWebRTCPeer. Remove WebRTCPeer tests as they currently require invasively modifying internal fields at different stages of construction.
This commit is contained in:
parent
b48fb781ee
commit
32207d6f06
4 changed files with 10 additions and 111 deletions
|
|
@ -5,10 +5,6 @@ import (
|
|||
"net"
|
||||
)
|
||||
|
||||
type Connector interface {
|
||||
Connect() error
|
||||
}
|
||||
|
||||
// Interface for catching Snowflakes. (aka the remote dialer)
|
||||
type Tongue interface {
|
||||
Catch() (*WebRTCPeer, error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue