Browse Source

fix due to gumble API changes

master
Tim Cooper 10 years ago
parent
commit
58cf9f6d8a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      cmd/barnard/main.go

+ 2
- 2
cmd/barnard/main.go View File

@@ -32,14 +32,14 @@ func main() {
Listener: &b,
}
if *insecure {
b.Config.TlsConfig.InsecureSkipVerify = true
b.Config.TLSConfig.InsecureSkipVerify = true
}
if *certificate != "" {
if cert, err := tls.LoadX509KeyPair(*certificate, *certificate); err != nil {
fmt.Fprintf(os.Stderr, "%s\n", err)
os.Exit(1)
} else {
b.Config.TlsConfig.Certificates = []tls.Certificate{cert}
b.Config.TLSConfig.Certificates = []tls.Certificate{cert}
}
}



Loading…
Cancel
Save