summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Fifield <david@bamsoftware.com>2020-01-28 02:55:17 -0700
committerDavid Fifield <david@bamsoftware.com>2020-01-28 03:04:14 -0700
commitbc5498cb4b605f4e0777b6348738ace89f88f953 (patch)
treeb91d293b97a748fe4d31f25e916d29296557b34b
parentdb1ba4791b101b7a83060261bb44769dd7db8e25 (diff)
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.
-rw-r--r--client/lib/snowflake.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/lib/snowflake.go b/client/lib/snowflake.go
index 2e68e36..50070af 100644
--- a/client/lib/snowflake.go
+++ b/client/lib/snowflake.go
@@ -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() {