aboutsummaryrefslogtreecommitdiff
path: root/plugins/ice
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2023-07-09 14:15:40 +0200
committerMarvin W <git@larma.de>2023-07-09 14:32:33 +0200
commit7357b7ecfbaa6bd0b9aeacb6d1551fd02b3f0f20 (patch)
treeb4ab1ef40f020f83b80ab616deb34d889962d97d /plugins/ice
parent1bf57a42fa5c36977132d21f59ca6637fcd0c3d3 (diff)
downloaddino-7357b7ecfbaa6bd0b9aeacb6d1551fd02b3f0f20.tar.gz
dino-7357b7ecfbaa6bd0b9aeacb6d1551fd02b3f0f20.zip
Fix certificate start time
I doubt anyone ever looked at it, but it shouldn't be 1 day in the future ;)
Diffstat (limited to 'plugins/ice')
-rw-r--r--plugins/ice/src/dtls_srtp.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ice/src/dtls_srtp.vala b/plugins/ice/src/dtls_srtp.vala
index e2817ef3..c9813b7e 100644
--- a/plugins/ice/src/dtls_srtp.vala
+++ b/plugins/ice/src/dtls_srtp.vala
@@ -86,7 +86,7 @@ public class Handler {
err = private_key.generate(PKAlgorithm.ECDSA, 256);
throw_if_error(err);
- var start_time = new DateTime.now_local().add_days(1);
+ var start_time = new DateTime.now_local().add_days(-1);
var end_time = start_time.add_days(2);
X509.Certificate cert = X509.Certificate.create();