mirror of
https://github.com/xtaci/kcptun.git
synced 2024-04-21 12:32:32 +00:00
api rename
This commit is contained in:
+1
-1
@@ -131,7 +131,7 @@ func main() {
|
||||
}
|
||||
log.Println("communication mode:", c.String("mode"))
|
||||
// kcp server
|
||||
kcpconn, err := kcp.DialEncrypted(mode, c.Int("fec"), c.String("remoteaddr"), []byte(c.String("key")))
|
||||
kcpconn, err := kcp.DialWithOptions(mode, c.Int("fec"), c.String("remoteaddr"), []byte(c.String("key")))
|
||||
checkError(err)
|
||||
log.Println("remote address:", c.String("remoteaddr"))
|
||||
log.Println("sndwnd:", c.Int("sndwnd"), "rcvwnd:", c.Int("rcvwnd"))
|
||||
|
||||
+1
-1
@@ -157,7 +157,7 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
lis, err := kcp.ListenEncrypted(mode, c.Int("fec"), c.String("listen"), []byte(c.String("key")))
|
||||
lis, err := kcp.ListenWithOptions(mode, c.Int("fec"), c.String("listen"), []byte(c.String("key")))
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user