Browse Source

fix: error formatting

make_cert_optional
Otto Suess 7 years ago
parent
commit
d0882c6608
No known key found for this signature in database GPG Key ID: 354749C62B4BAC41
  1. 6
      zapconnect.go

6
zapconnect.go

@ -1,7 +1,6 @@
package main package main
import ( import (
// "flag"
"fmt" "fmt"
"net" "net"
"io/ioutil" "io/ioutil"
@ -54,18 +53,19 @@ func getPublicIP() string {
func main() { func main() {
loadedConfig, err := loadConfig() loadedConfig, err := loadConfig()
if err != nil { if err != nil {
fmt.Println()
return return
} }
certBytes, err := ioutil.ReadFile(loadedConfig.TLSCertPath) certBytes, err := ioutil.ReadFile(loadedConfig.TLSCertPath)
if err != nil { if err != nil {
fmt.Print(err) fmt.Println(err)
return return
} }
macBytes, err := ioutil.ReadFile(loadedConfig.AdminMacPath) macBytes, err := ioutil.ReadFile(loadedConfig.AdminMacPath)
if err != nil { if err != nil {
fmt.Print(err) fmt.Println(err)
return return
} }

Loading…
Cancel
Save