mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-10-15 03:53:59 +00:00
test gorilla websocket
This commit is contained in:
@@ -39,7 +39,8 @@ func (c *BrowserDialerClient) OpenStream(ctx context.Context, url string, sessio
|
||||
return nil, dummyAddr, dummyAddr, err
|
||||
}
|
||||
|
||||
return websocket.NewConnection(conn, dummyAddr, nil, 0), conn.RemoteAddr(), conn.LocalAddr(), nil
|
||||
wrapped := websocket.NewConnection(conn, nil, nil, 0)
|
||||
return wrapped, wrapped.RemoteAddr(), wrapped.LocalAddr(), nil
|
||||
}
|
||||
|
||||
func (c *BrowserDialerClient) PostPacket(ctx context.Context, url string, sessionId string, seqStr string, payload buf.MultiBuffer) error {
|
||||
|
||||
Reference in New Issue
Block a user