mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Add proxy event for when client has connected
This enables the usage of callbacks that will be called when a client has opened a data channel connection to the proxy.
This commit is contained in:
parent
0d8bd159ec
commit
aaf8826560
2 changed files with 9 additions and 0 deletions
|
@ -67,6 +67,14 @@ func (e EventOnProxyStarting) String() string {
|
|||
return "Proxy starting"
|
||||
}
|
||||
|
||||
type EventOnProxyClientConnected struct {
|
||||
SnowflakeEvent
|
||||
}
|
||||
|
||||
func (e EventOnProxyClientConnected) String() string {
|
||||
return fmt.Sprintf("client connected")
|
||||
}
|
||||
|
||||
type EventOnProxyConnectionOver struct {
|
||||
SnowflakeEvent
|
||||
InboundTraffic int64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue