Skip to content

Commit

Permalink
Don't generate cert for ipv6 address
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Nov 13, 2019
1 parent 02b97e0 commit 655c081
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions listener.go
Expand Up @@ -95,8 +95,10 @@ func (l *listener) Accept() (net.Conn, error) {
return conn, nil
}

if err := l.updateCert(host); err != nil {
logrus.Infof("failed to create TLS cert for: %s", host)
if !strings.Contains(host, ":") {
if err := l.updateCert(host); err != nil {
logrus.Infof("failed to create TLS cert for: %s", host)
}
}

return conn, nil
Expand Down

0 comments on commit 655c081

Please sign in to comment.