Support Signal server with TLS (#76)

* tlsEnabled flag and DialOption

* Update signal client invocations
This commit is contained in:
Maycon Santos
2021-08-01 12:54:35 +02:00
committed by GitHub
parent ea99def502
commit 6ce5b2c815
4 changed files with 18 additions and 5 deletions

View File

@@ -28,8 +28,10 @@ var (
os.Exit(ExitSetupFailed)
}
var sigTLSEnabled = false
ctx := context.Background()
signalClient, err := sig.NewClient(ctx, config.SignalAddr, myKey)
signalClient, err := sig.NewClient(ctx, config.SignalAddr, myKey, sigTLSEnabled)
if err != nil {
log.Errorf("error while connecting to the Signal Exchange Service %s: %s", config.SignalAddr, err)
os.Exit(ExitSetupFailed)