remoton

Check-in [b04c4d415d]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:cmd/remoton-server: uuid now from github.com/satori/go.uuid
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:b04c4d415df5bce98b8c088544d0a65b2124298b1900e03b47e484563cffc1ef
User & Date: bit4bit@riseup.net 2016-08-04 15:09:22
Context
2016-08-04
15:15
cmd/remoto-server: fix throttled import check-in: 1f7de1472b user: bit4bit@riseup.net tags: master, trunk
15:09
cmd/remoton-server: uuid now from github.com/satori/go.uuid check-in: b04c4d415d user: bit4bit@riseup.net tags: master, trunk
15:07
xpra/xpra: --scaling parameter to --video-scaling check-in: 67eafaa272 user: bit4bit@riseup.net tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to cmd/remoton-server/main.go.

6
7
8
9
10
11
12

13
14
15
16
17
18
19
20
21
..
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
	"net/http"
	"os"
	"runtime"
	"runtime/pprof"
	"strconv"

	"github.com/bit4bit/remoton"


	"code.google.com/p/go-uuid/uuid"
	log "github.com/Sirupsen/logrus"

	"github.com/throttled/throttled"
	"github.com/throttled/throttled/store"
)

var (
................................................................................
		store.NewMemStore(100),
	)
	mux := http.NewServeMux()
	mux.Handle("/remoton/", http.StripPrefix("/remoton",
		remoton.NewServer(func(authToken string, r *http.Request) bool {
			return authToken == *authTokenFlag
		}, func() string {
			return uuid.New()[0:8]
		})))

	log.Println("Listen at HTTPS ", *listenAddr)
	sSecure := &http.Server{
		Addr:    *listenAddr,
		Handler: th.Throttle(mux),
	}







>
|
<







 







|







6
7
8
9
10
11
12
13
14

15
16
17
18
19
20
21
..
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
	"net/http"
	"os"
	"runtime"
	"runtime/pprof"
	"strconv"

	"github.com/bit4bit/remoton"
	"github.com/satori/go.uuid"
	

	log "github.com/Sirupsen/logrus"

	"github.com/throttled/throttled"
	"github.com/throttled/throttled/store"
)

var (
................................................................................
		store.NewMemStore(100),
	)
	mux := http.NewServeMux()
	mux.Handle("/remoton/", http.StripPrefix("/remoton",
		remoton.NewServer(func(authToken string, r *http.Request) bool {
			return authToken == *authTokenFlag
		}, func() string {
			return uuid.NewV4().String()[0:8]
		})))

	log.Println("Listen at HTTPS ", *listenAddr)
	sSecure := &http.Server{
		Addr:    *listenAddr,
		Handler: th.Throttle(mux),
	}