mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
27 lines
558 B
Swift
27 lines
558 B
Swift
//
|
|
// Created by Adam Stragner
|
|
//
|
|
|
|
import Foundation
|
|
import TonutilsProxyBridge
|
|
|
|
// MARK: - TonutilsProxy
|
|
|
|
@available(iOS 13.0, *)
|
|
public final class TonutilsProxy: TPBTunnel {
|
|
enum SupportedDomain: String, CaseIterable, RawRepresentable {
|
|
case ton
|
|
case adnl
|
|
case tme = "t.me"
|
|
case bag
|
|
}
|
|
|
|
public static var shared: TonutilsProxy {
|
|
shared()
|
|
}
|
|
|
|
@discardableResult
|
|
public func start(_ port: UInt16 = 9090) async throws -> TPBTunnelParameters {
|
|
try await start(withPort: port)
|
|
}
|
|
}
|