mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
docs: fix example server library usage
`Listen` now accepts `numKCPInstances`
This commit is contained in:
parent
a6d4570c23
commit
062411143c
1 changed files with 2 additions and 1 deletions
|
@ -130,7 +130,8 @@ func main() {
|
|||
if err != nil {
|
||||
log.Printf("error resolving bind address: %s", err.Error())
|
||||
}
|
||||
ln, err := transport.Listen(addr)
|
||||
numKCPInstances := 1
|
||||
ln, err := transport.Listen(addr, numKCPInstances)
|
||||
if err != nil {
|
||||
log.Printf("error opening listener: %s", err.Error())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue