|
|
@ -587,8 +587,8 @@ func main() { |
|
|
|
} |
|
|
|
} |
|
|
|
tlsConfig := tls.Config{ |
|
|
|
tlsConfig := tls.Config{ |
|
|
|
Certificates: []tls.Certificate{cert}, |
|
|
|
Certificates: []tls.Certificate{cert}, |
|
|
|
ClientAuth: tls.RequireAndVerifyClientCert, |
|
|
|
ClientAuth: tls.RequireAndVerifyClientCert, |
|
|
|
ClientCAs: clientCAs, |
|
|
|
ClientCAs: clientCAs, |
|
|
|
} |
|
|
|
} |
|
|
|
listenAddr := &net.TCPAddr{Port: port} |
|
|
|
listenAddr := &net.TCPAddr{Port: port} |
|
|
|
listener, err := net.ListenTCP("tcp", listenAddr) |
|
|
|
listener, err := net.ListenTCP("tcp", listenAddr) |
|
|
|