mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
fixing federating webrtc
This commit is contained in:
parent
9f1448806a
commit
de10c6fd64
@ -14,6 +14,8 @@ var cur bool = false
|
|||||||
//Status handler for websocket connection
|
//Status handler for websocket connection
|
||||||
func Relay(w http.ResponseWriter, r *http.Request) {
|
func Relay(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
|
relayer.CheckOrigin = func(r *http.Request) bool { return true }
|
||||||
|
|
||||||
// accept websocket connection
|
// accept websocket connection
|
||||||
conn, err := relayer.Upgrade(w, r, nil)
|
conn, err := relayer.Upgrade(w, r, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -12,6 +12,8 @@ var relayUpgrader = websocket.Upgrader{}
|
|||||||
//Status handler for websocket connection
|
//Status handler for websocket connection
|
||||||
func Signal(w http.ResponseWriter, r *http.Request) {
|
func Signal(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
|
relayUpgrader.CheckOrigin = func(r *http.Request) bool { return true }
|
||||||
|
|
||||||
// accept websocket connection
|
// accept websocket connection
|
||||||
conn, err := relayUpgrader.Upgrade(w, r, nil)
|
conn, err := relayUpgrader.Upgrade(w, r, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user