mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 00:06:38 +00:00
Support Signal server with TLS (#76)
* tlsEnabled flag and DialOption * Update signal client invocations
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user