From 47dbe23351ee77c5657dfe2aefc582b1623fb35c Mon Sep 17 00:00:00 2001 From: ed sandberg Date: Fri, 19 May 2023 11:55:15 -0500 Subject: [PATCH] fixed issue with main.go --- main/main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main/main.go b/main/main.go index 7e188c2..e8b5a99 100644 --- a/main/main.go +++ b/main/main.go @@ -139,7 +139,6 @@ func main() { PSKIdentityHint: []byte("Pion DTLS Client"), CipherSuites: []dtls.CipherSuiteID{cipherSuiteID}, FlightInterval: FlightSeconds * time.Second, - ExtendedMasterSecret: dtls.DisableExtendedMasterSecret, } } else { // Generate a certificate and private key to secure the connection @@ -161,7 +160,6 @@ func main() { config = &dtls.Config{ CipherSuites: []dtls.CipherSuiteID{cipherSuiteID}, FlightInterval: FlightSeconds * time.Second, - ExtendedMasterSecret: dtls.DisableExtendedMasterSecret, Certificate: certificate, PrivateKey: privateKey, ClientAuth: clientAuth, @@ -179,7 +177,7 @@ func main() { // This function is called after the main method has ended defer func() { fmt.Println("Closing Listener") - util.Check(listener.Close(0 * time.Second)) + util.Check(listener.Close()) }() c := make(chan os.Signal, 1)