fix config

This commit is contained in:
anlicheng 2025-07-16 17:51:30 +08:00
parent 035ec9343d
commit 95d8102076

View File

@ -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