Skip to content

Commit dfd0626

Browse files
author
garenwang
committed
fix:修改quic ip链接方式
1 parent a52226a commit dfd0626

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Binary file not shown.

QCloudQuic/Classes/QCloudBase/TquicConnection.mm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,11 @@ -(void)cancleRequest{
285285
//sent request
286286
-(void)startRequest{
287287
NSLog(@"Tquic startRequest: %@ (%@)", self.quicReqeust.host, self.quicReqeust.ip);
288-
request_sp->ConnectWithDomain([self.quicReqeust.host UTF8String], [QCloudQuicConfig shareConfig].port);
288+
if(self.quicReqeust.ip == nil){
289+
request_sp->ConnectWithDomain([self.quicReqeust.host UTF8String], [QCloudQuicConfig shareConfig].port);
290+
}else{
291+
request_sp->Connect([self.quicReqeust.host UTF8String], [self.quicReqeust.ip UTF8String], [QCloudQuicConfig shareConfig].port, [QCloudQuicConfig shareConfig].tcp_port);
292+
}
289293
// request_sp.get()->Connect([@"iacc.stgw.qq.com" UTF8String] , [@"101.89.15.244" UTF8String], [QCloudQuicConfig shareConfig].port, [QCloudQuicConfig shareConfig].tcp_port);
290294
}
291295
-(void)dealloc{

0 commit comments

Comments
 (0)