From 1512e99d87d59688121a0b3baf605cd61fd2ced2 Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Wed, 16 Jul 2025 17:58:35 +0800 Subject: [PATCH] fix config --- Sources/Punchnet/SDLConfiguration.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/Punchnet/SDLConfiguration.swift b/Sources/Punchnet/SDLConfiguration.swift index 4719d9e..7b537ba 100644 --- a/Sources/Punchnet/SDLConfiguration.swift +++ b/Sources/Punchnet/SDLConfiguration.swift @@ -13,6 +13,11 @@ public class SDLConfiguration { public struct StunServer { public let host: String public let ports: [Int] + + public init(host: String, ports: [Int]) { + self.host = host + self.ports = ports + } } // 当前的客户端版本