From 65618d8e35e913b9fd5c580f600ded9defcf1bf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Wed, 27 Aug 2025 21:50:19 +0200 Subject: [PATCH] Export extensionKeyCandidateID --- extension_candidate_pair_id.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extension_candidate_pair_id.go b/extension_candidate_pair_id.go index 0f156dc..2f00e9d 100644 --- a/extension_candidate_pair_id.go +++ b/extension_candidate_pair_id.go @@ -7,14 +7,14 @@ import ( const ( // used in RDP for candidate ID extension - extensionKeyCandidateID = "cid" + ExtensionKeyCandidateID = "cid" candidateIDPrefix = "candidate:" ) func candidateIDFromExtensions(extensions []CandidateExtension) string { for _, ext := range extensions { - if ext.Key == extensionKeyCandidateID { + if ext.Key == ExtensionKeyCandidateID { return fmt.Sprintf("candidate:%s", ext.Value) } } @@ -24,7 +24,7 @@ func candidateIDFromExtensions(extensions []CandidateExtension) string { func newCandidateIDExtension(candidateID string) CandidateExtension { return CandidateExtension{ - Key: extensionKeyCandidateID, + Key: ExtensionKeyCandidateID, Value: strings.TrimPrefix(candidateID, candidateIDPrefix), } }