Telegram-iOS/submodules/BrowserUI/TonutilsProxyBridge/Sources/TPBTunnelParameters.m
2024-07-12 11:36:44 +04:00

23 lines
459 B
Objective-C

//
// Created by Adam Stragner
//
#import <TonProxyBridge/TPBTunnelParameters.h>
@implementation TPBTunnelParameters
- (instancetype)initWithHost:(NSString *)host port:(UInt16)port {
self = [super init];
if (self) {
_host = [host copy];
_port = port;
}
return self;
}
- (NSURL *)URL {
NSString *path = [NSString stringWithFormat:@"%@:%d", self.host, self.port];
return [[NSURL alloc] initWithString:path];
}
@end