mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Redundant close
This commit is contained in:
parent
b8815627bd
commit
ed60c74686
1 changed files with 0 additions and 2 deletions
|
@ -55,7 +55,6 @@ type SnowflakeChannel interface {
|
||||||
|
|
||||||
// Initialize a WebRTC Connection.
|
// Initialize a WebRTC Connection.
|
||||||
func dialWebRTC() (*webRTCConn, error) {
|
func dialWebRTC() (*webRTCConn, error) {
|
||||||
|
|
||||||
// TODO: [#3] Fetch ICE server information from Broker.
|
// TODO: [#3] Fetch ICE server information from Broker.
|
||||||
// TODO: [#18] Consider TURN servers here too.
|
// TODO: [#18] Consider TURN servers here too.
|
||||||
config := webrtc.NewConfiguration(iceServers...)
|
config := webrtc.NewConfiguration(iceServers...)
|
||||||
|
@ -92,7 +91,6 @@ func handler(conn *pt.SocksConn) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
defer remote.Close()
|
defer remote.Close()
|
||||||
defer conn.Close()
|
|
||||||
webrtcRemote = remote
|
webrtcRemote = remote
|
||||||
|
|
||||||
err = conn.Grant(&net.TCPAddr{IP: net.IPv4zero, Port: 0})
|
err = conn.Grant(&net.TCPAddr{IP: net.IPv4zero, Port: 0})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue