From eb88c0d15c276e934ef589702737d6cceee4da1d Mon Sep 17 00:00:00 2001 From: torikizi <51085972+torikizi@users.noreply.github.com> Date: Sun, 29 Dec 2024 22:36:56 +0900 Subject: [PATCH] =?UTF-8?q?Header=20=E3=82=AF=E3=83=A9=E3=82=B9=E3=81=AF?= =?UTF-8?q?=E4=B8=8D=E8=A6=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sora/Sora.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Sora/Sora.cs b/Sora/Sora.cs index 3ff3197..a1223c4 100644 --- a/Sora/Sora.cs +++ b/Sora/Sora.cs @@ -50,10 +50,6 @@ public enum SpotlightFocusRidType R1, R2, } - public class Header - { - public List content { get; set; } = new List(); - } public class DataChannel { // 以下は設定必須 @@ -65,8 +61,7 @@ public class DataChannel public int? MaxRetransmits; public string? Protocol; public bool? Compress; - public Header? Header; - + public List? Header; } public const string ActionBlock = "block"; @@ -461,7 +456,7 @@ public void Connect(Config config) } if (m.Header != null) { - c.SetHeader(new SoraConf.Internal.Header { content = new List(m.Header.content) }); + c.SetHeader(new SoraConf.Internal.DataChannel.Header { content = m.Header }); } cc.data_channels.Add(c); }