From 83b12e812bb3955f79ca20bfec0cd1e89b62b032 Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Mon, 1 Jan 2024 03:53:49 +0300 Subject: [PATCH] noise: change the WG packet type values: - This bypasses STC's DPI - Requires both sides to use these values. Hence, this is outside the wg spec, and may even be called something different. Signed-off-by: HeshamTB --- device/noise-protocol.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/device/noise-protocol.go b/device/noise-protocol.go index 06f7df6..2fe352e 100644 --- a/device/noise-protocol.go +++ b/device/noise-protocol.go @@ -53,10 +53,10 @@ const ( ) const ( - MessageInitiationType = 1 + 0x40000000 - MessageResponseType = 2 + 0x40000000 - MessageCookieReplyType = 3 + 0x40000000 - MessageTransportType = 4 + 0x40000000 + MessageInitiationType = 6 + MessageResponseType = 7 + MessageCookieReplyType = 8 + MessageTransportType = 9 ) const (