remoton

Check-in [fe316eab8c]

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

Overview
Comment:cmd/remoton-support-desktop: add flag -insecure for skip validation tls
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:fe316eab8c4616fdba25ba9f46ce3e1356467f62c56add4aabea8cd46abdfb98
User & Date: bit4bit@riseup.net 2016-08-04 14:10:59
Context
2016-08-04
14:11
cmd/remoton-client-desktop: add flag -insecure for skip validation tls check-in: 240166e12f user: bit4bit@riseup.net tags: master, trunk
14:10
cmd/remoton-support-desktop: add flag -insecure for skip validation tls check-in: fe316eab8c user: bit4bit@riseup.net tags: master, trunk
2016-01-23
21:29
timeout on dial check-in: f7b7162711 user: bit4bit@riseup.net tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to cmd/remoton-support-desktop/main.go.

4
5
6
7
8
9
10

11
12
13
14
15
16
17
..
23
24
25
26
27
28
29

30
31
32


33
34
35
36
37
38
39
...
138
139
140
141
142
143
144


145
146
147
148
149
150
151
152
//Environment Vars:
//  * REMOTON_SERVER : set default remote server to connect

//+build linux,windows
package main

import (

	"crypto/tls"
	"github.com/bit4bit/remoton"
	"github.com/bit4bit/remoton/common"
	"os"
	"os/signal"
	"runtime"
	"syscall"
................................................................................
	"github.com/mattn/go-gtk/gtk"
)

var (
	rclient   *remoton.Client
	chatSrv   = &chatRemoton{}
	tunnelSrv = &tunnelRemoton{}

)

func main() {


	common.SetDefaultGtkTheme()

	runtime.GOMAXPROCS(runtime.NumCPU())

	rclient = &remoton.Client{Prefix: "/remoton", TLSConfig: &tls.Config{}}
	sigs := make(chan os.Signal, 1)
	signal.Notify(sigs, syscall.SIGHUP, syscall.SIGINT, syscall.SIGABRT, syscall.SIGKILL, syscall.SIGTERM)
................................................................................
		certPool, err := common.GetRootCAFromFile(btnCert.GetFilename())
		if err != nil {
			dialogError(window, err)
			return
		}

		rclient.TLSConfig.RootCAs = certPool



		session := &remoton.SessionClient{Client: rclient,
			ID:     machineIDEntry.GetText(),
			APIURL: "https://" + serverEntry.GetText()}

		if !started {
			err := chatSrv.Start(session)
			if err != nil {







>







 







>



>
>







 







>
>
|







4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
..
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
...
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
//Environment Vars:
//  * REMOTON_SERVER : set default remote server to connect

//+build linux,windows
package main

import (
	"flag"
	"crypto/tls"
	"github.com/bit4bit/remoton"
	"github.com/bit4bit/remoton/common"
	"os"
	"os/signal"
	"runtime"
	"syscall"
................................................................................
	"github.com/mattn/go-gtk/gtk"
)

var (
	rclient   *remoton.Client
	chatSrv   = &chatRemoton{}
	tunnelSrv = &tunnelRemoton{}
	insecure = flag.Bool("insecure", false, "insecure tls")
)

func main() {
	flag.Parse()
	
	common.SetDefaultGtkTheme()

	runtime.GOMAXPROCS(runtime.NumCPU())

	rclient = &remoton.Client{Prefix: "/remoton", TLSConfig: &tls.Config{}}
	sigs := make(chan os.Signal, 1)
	signal.Notify(sigs, syscall.SIGHUP, syscall.SIGINT, syscall.SIGABRT, syscall.SIGKILL, syscall.SIGTERM)
................................................................................
		certPool, err := common.GetRootCAFromFile(btnCert.GetFilename())
		if err != nil {
			dialogError(window, err)
			return
		}

		rclient.TLSConfig.RootCAs = certPool
		if *insecure {
			rclient.TLSConfig.InsecureSkipVerify = true
		}
		session := &remoton.SessionClient{Client: rclient,
			ID:     machineIDEntry.GetText(),
			APIURL: "https://" + serverEntry.GetText()}

		if !started {
			err := chatSrv.Start(session)
			if err != nil {