Tweak TLS settings (ref #23)

This commit is contained in:
Jakob Borg 2014-01-09 09:28:08 +01:00
parent 17e78d6f7e
commit 211180108e

12
main.go
View File

@ -114,11 +114,13 @@ func main() {
// connections. // connections.
cfg := &tls.Config{ cfg := &tls.Config{
ClientAuth: tls.RequestClientCert, Certificates: []tls.Certificate{cert},
ServerName: "syncthing", NextProtos: []string{"bep/1.0"},
NextProtos: []string{"bep/1.0"}, ServerName: myID,
InsecureSkipVerify: true, ClientAuth: tls.RequestClientCert,
Certificates: []tls.Certificate{cert}, SessionTicketsDisabled: true,
InsecureSkipVerify: true,
MinVersion: tls.VersionTLS12,
} }
// Load the configuration file, if it exists. // Load the configuration file, if it exists.