fix config
This commit is contained in:
parent
035ec9343d
commit
95d8102076
@ -10,9 +10,9 @@ import NIOCore
|
|||||||
// 配置项目
|
// 配置项目
|
||||||
public class SDLConfiguration {
|
public class SDLConfiguration {
|
||||||
|
|
||||||
struct StunServer {
|
public struct StunServer {
|
||||||
let host: String
|
public let host: String
|
||||||
let ports: [Int]
|
public let ports: [Int]
|
||||||
}
|
}
|
||||||
|
|
||||||
// 当前的客户端版本
|
// 当前的客户端版本
|
||||||
@ -44,7 +44,7 @@ public class SDLConfiguration {
|
|||||||
let clientId: String
|
let clientId: String
|
||||||
let token: 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.version = version
|
||||||
self.installedChannel = installedChannel
|
self.installedChannel = installedChannel
|
||||||
self.superHost = superHost
|
self.superHost = superHost
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user