mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-02 03:48:26 +00:00
Tweak TLS settings (ref #23)
This commit is contained in:
parent
17e78d6f7e
commit
211180108e
12
main.go
12
main.go
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user