9 "github.com/layeh/barnard"
10 "github.com/layeh/barnard/uiterm"
11 "github.com/layeh/gumble/gumble"
12 _ "github.com/layeh/gumble/opus"
17 server := flag.String("server", "localhost:64738", "the server to connect to")
18 username := flag.String("username", "", "the username of the client")
19 insecure := flag.Bool("insecure", false, "skip server certificate verification")
20 certificate := flag.String("certificate", "", "PEM encoded certificate and private key")
26 Config: gumble.NewConfig(),
30 b.Config.Username = *username
33 b.TLSConfig.InsecureSkipVerify = true
35 if *certificate != "" {
36 cert, err := tls.LoadX509KeyPair(*certificate, *certificate)
38 fmt.Fprintf(os.Stderr, "%s\n", err)
41 b.TLSConfig.Certificates = append(b.TLSConfig.Certificates, cert)