Skip to content

Commit

Permalink
修复客户端被外部掐断ws后重连失败时出错,修复保存的数据使用了同一个内存地址导致都是一样的内容的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zanjie1999 committed Oct 12, 2023
1 parent 988235c commit fc4227e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tcp2ws.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Tcp over WebSocket (tcp2ws)
// 基于ws的内网穿透工具
// Sparkle 20210430
// 10.4
// 11.0

package main

Expand Down Expand Up @@ -646,7 +646,7 @@ func dnsPreferIpWithTtl(hostname string, ttl uint32) {
func main() {
arg_num := len(os.Args)
if arg_num < 3 {
fmt.Println("TCP over WebSocket (tcp2ws) with UDP support 10.4\nhttps://github.com/zanjie1999/tcp-over-websocket")
fmt.Println("TCP over WebSocket (tcp2ws) with UDP support 11.0\nhttps://github.com/zanjie1999/tcp-over-websocket")
fmt.Println("Client: ws://tcp2wsUrl localPort\nServer: ip:port tcp2wsPort\nUse wss: ip:port tcp2wsPort server.crt server.key")
fmt.Println("Make ssl cert:\nopenssl genrsa -out server.key 2048\nopenssl ecparam -genkey -name secp384r1 -out server.key\nopenssl req -new -x509 -sha256 -key server.key -out server.crt -days 36500")
os.Exit(0)
Expand Down

0 comments on commit fc4227e

Please sign in to comment.