Skip to content
Snippets Groups Projects
Commit bc5498cb authored by David Fifield's avatar David Fifield
Browse files

Fix the order of arguments of client copyLoop to match the call.

The call was
	copyLoop(socks, snowflake)
but the function signature was
	func copyLoop(WebRTC, SOCKS io.ReadWriter) {

The mistake was mostly harmless, because both arguments were treated the
same, except that error logs would have reported the wrong direction.
parent db1ba479
Branches
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ func Handler(socks SocksConnector, snowflakes SnowflakeCollector) error {
// Exchanges bytes between two ReadWriters.
// (In this case, between a SOCKS and WebRTC connection.)
func copyLoop(WebRTC, SOCKS io.ReadWriter) {
func copyLoop(SOCKS, WebRTC io.ReadWriter) {
var wg sync.WaitGroup
wg.Add(2)
go func() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment