commit 767c07dc58c97382e32d3a8388ed468b32ccf382 Author: Cecylia Bocovich <coh...@torproject.org> Date: Thu Sep 9 16:11:01 2021 -0400
Update client library usage documentation --- doc/using-the-snowflake-library.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/doc/using-the-snowflake-library.md b/doc/using-the-snowflake-library.md index 4dc47fc..2c74296 100644 --- a/doc/using-the-snowflake-library.md +++ b/doc/using-the-snowflake-library.md @@ -17,10 +17,15 @@ import ( func main() { - transport, err := sf.NewSnowflakeClient("https://snowflake-broker.example.com", - "https://friendlyfrontdomain.net", - []string{"stun:stun.voip.blackberry.com:3478", "stun:stun.stunprotocol.org:3478"}, - false, 1) + config := sf.ClientConfig{ + BrokerURL: "https://snowflake-broker.example.com", + FrontDomain: "https://friendlyfrontdomain.net", + ICEAddresses: []string{ + "stun:stun.voip.blackberry.com:3478", + "stun:stun.stunprotocol.org:3478"}, + Max: 1, + } + transport, err := sf.NewSnowflakeClient(config) if err != nil { log.Fatal("Failed to start snowflake transport: ", err) } _______________________________________________ tor-commits mailing list tor-commits@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits