commit cd6d837d85bb915d77bf122a82bb161c9d68cf20
Author: Shelikhoo <xiaokangw...@outlook.com>
Date:   Mon Nov 29 12:46:51 2021 +0000

    Add snowflake event handler to client config
---
 client/lib/snowflake.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/client/lib/snowflake.go b/client/lib/snowflake.go
index 56dd312..fdcb457 100644
--- a/client/lib/snowflake.go
+++ b/client/lib/snowflake.go
@@ -35,6 +35,7 @@ import (
        "strings"
        "time"
 
+       "git.torproject.org/pluggable-transports/snowflake.git/v2/common/event"
        "git.torproject.org/pluggable-transports/snowflake.git/v2/common/nat"
        
"git.torproject.org/pluggable-transports/snowflake.git/v2/common/turbotunnel"
        "github.com/pion/webrtc/v3"
@@ -92,6 +93,9 @@ type ClientConfig struct {
        // Max is the maximum number of snowflake proxy peers that the client 
should attempt to
        // connect to. Defaults to 1.
        Max int
+       // EventDispatcher is the event bus for snowflake events.
+       // When an important event happens, it will be distributed here.
+       EventDispatcher event.SnowflakeEventDispatcher
 }
 
 // NewSnowflakeClient creates a new Snowflake transport client that can spawn 
multiple



_______________________________________________
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits

Reply via email to