mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Update client library usage documentation
This commit is contained in:
parent
638ec6c222
commit
767c07dc58
1 changed files with 9 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue