This commit is contained in:
aozhiwei 2024-04-05 16:31:46 +08:00
parent 514aa9d810
commit a3ae6fd5b0

View File

@ -48,10 +48,12 @@ func (this *WSPListener) SS_WSP_SocketDisconnect(hdr *f5.MsgHdr, msg *ss.SS_WSP_
}
func (this *WSPListener) SS_HttpTunnelRequest(hdr *f5.MsgHdr, msg *ss.SS_HttpTunnelRequest) {
f5.GetSysLog().Info("%s %s", q5.GetTypeName(msg), q5.EncodeJson(msg))
fmt.Println("hello")
rspMsg := new(ss.SS_HttpTunnelResponse)
rspMsg.ContextId = msg.ContextId
rspMsg.SocketHandle = msg.SocketHandle
rspMsg.Response = proto.String("hello")
rspMsg.Response = proto.String(q5.EncodeJson(msg))
this.SendProxyMsg(hdr.Conn, 0, rspMsg)
}