Tweak TLS settings (ref #23)
This commit is contained in:
10
main.go
10
main.go
@@ -114,11 +114,13 @@ func main() {
|
|||||||
// connections.
|
// connections.
|
||||||
|
|
||||||
cfg := &tls.Config{
|
cfg := &tls.Config{
|
||||||
ClientAuth: tls.RequestClientCert,
|
|
||||||
ServerName: "syncthing",
|
|
||||||
NextProtos: []string{"bep/1.0"},
|
|
||||||
InsecureSkipVerify: true,
|
|
||||||
Certificates: []tls.Certificate{cert},
|
Certificates: []tls.Certificate{cert},
|
||||||
|
NextProtos: []string{"bep/1.0"},
|
||||||
|
ServerName: myID,
|
||||||
|
ClientAuth: tls.RequestClientCert,
|
||||||
|
SessionTicketsDisabled: true,
|
||||||
|
InsecureSkipVerify: true,
|
||||||
|
MinVersion: tls.VersionTLS12,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load the configuration file, if it exists.
|
// Load the configuration file, if it exists.
|
||||||
|
|||||||
Reference in New Issue
Block a user