From 95d8102076dfb107ae1a72f5921bb08e8ad56a0a Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Wed, 16 Jul 2025 17:51:30 +0800 Subject: [PATCH] fix config --- Sources/Punchnet/SDLConfiguration.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/Punchnet/SDLConfiguration.swift b/Sources/Punchnet/SDLConfiguration.swift index 3a9d9fd..4719d9e 100644 --- a/Sources/Punchnet/SDLConfiguration.swift +++ b/Sources/Punchnet/SDLConfiguration.swift @@ -10,9 +10,9 @@ import NIOCore // 配置项目 public class SDLConfiguration { - struct StunServer { - let host: String - let ports: [Int] + public struct StunServer { + public let host: String + public let ports: [Int] } // 当前的客户端版本 @@ -44,7 +44,7 @@ public class SDLConfiguration { let clientId: String let token: String - init(version: UInt8, installedChannel: String, superHost: String, superPort: Int, stunServers: [StunServer], clientId: String, token: String) { + public init(version: UInt8, installedChannel: String, superHost: String, superPort: Int, stunServers: [StunServer], clientId: String, token: String) { self.version = version self.installedChannel = installedChannel self.superHost = superHost