1
This commit is contained in:
parent
514aa9d810
commit
a3ae6fd5b0
@ -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) {
|
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 := new(ss.SS_HttpTunnelResponse)
|
||||||
rspMsg.ContextId = msg.ContextId
|
rspMsg.ContextId = msg.ContextId
|
||||||
rspMsg.SocketHandle = msg.SocketHandle
|
rspMsg.SocketHandle = msg.SocketHandle
|
||||||
rspMsg.Response = proto.String("hello")
|
rspMsg.Response = proto.String(q5.EncodeJson(msg))
|
||||||
this.SendProxyMsg(hdr.Conn, 0, rspMsg)
|
this.SendProxyMsg(hdr.Conn, 0, rspMsg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user