Skip to content

Commit f7277d9

Browse files
committed
ipv6作为服务器
1 parent 46d69e9 commit f7277d9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tasks/ipv6ClientServer.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,10 @@ func ipv6ClientHandle(conn net.Conn) {
8686
// TODO 验证token,RunId
8787
_ = rawMsg
8888
// Token为空
89-
handle.HandleStream(conn, "")
89+
session, err := yamux.Server(conn, yamux.DefaultConfig())
90+
if err != nil {
91+
conn.Close()
92+
return
93+
}
94+
go handle.HandleSession(session, "")
9095
}

0 commit comments

Comments
 (0)