Skip to content

Commit

Permalink
external UI page
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd Blose committed Jul 10, 2015
1 parent b9f3761 commit 6a8683e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/github.com/getlantern/flashlight/ui/ui.go
Expand Up @@ -28,6 +28,7 @@ var (
server *http.Server
uiaddr string

extuiaddr = "http://lantern-getting-started.s3-website-us-east-1.amazonaws.com/"
externalUrl = "https://www.facebook.com/manototv/" // this string is going to be changed by Makefile
r = http.NewServeMux()
)
Expand Down Expand Up @@ -96,7 +97,7 @@ func Show() {
log.Error(err)
return
}
open.Run(uiaddr)
open.Run(extuiaddr)
if externalUrl != "NO"+"_URL" {
time.Sleep(4 * time.Second)
open.Run(externalUrl)
Expand Down
6 changes: 5 additions & 1 deletion src/github.com/getlantern/flashlight/ui/ws.go
Expand Up @@ -15,7 +15,11 @@ const (
)

var (
upgrader = &websocket.Upgrader{ReadBufferSize: 1024, WriteBufferSize: MaxMessageSize}
upgrader = &websocket.Upgrader{
ReadBufferSize: 1024,
WriteBufferSize: MaxMessageSize,
CheckOrigin: func(r *http.Request) bool { return true },
}
)

// UIChannel represents a data channel to/from the UI. UIChannel will have one
Expand Down

0 comments on commit 6a8683e

Please sign in to comment.