Skip to content

Commit

Permalink
transport: use filepath for files
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Romano committed Mar 16, 2017
1 parent 08af69e commit af368af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/transport/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"math/big"
"net"
"os"
"path"
"path/filepath"
"strings"
"time"

Expand Down Expand Up @@ -89,8 +89,8 @@ func SelfCert(dirpath string, hosts []string) (info TLSInfo, err error) {
return
}

certPath := path.Join(dirpath, "cert.pem")
keyPath := path.Join(dirpath, "key.pem")
certPath := filepath.Join(dirpath, "cert.pem")
keyPath := filepath.Join(dirpath, "key.pem")
_, errcert := os.Stat(certPath)
_, errkey := os.Stat(keyPath)
if errcert == nil && errkey == nil {
Expand Down

0 comments on commit af368af

Please sign in to comment.