From 347226bd3e0b055084befe1da9598e87f7257d29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9D=E5=8F=91=E5=86=AC?= Date: Sun, 27 Aug 2023 23:37:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=91=84=E5=83=8F=E5=A4=B4=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=82=B9=E5=87=BB=E6=89=8D=E4=BC=9A=E7=99=BB?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ifish/airkiss/JMAirKissConnection.m | 4 ++-- .../IfishDeviceSelectList/IfishBindDeviceSelectViewController.m | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Ifish/airkiss/JMAirKissConnection.m b/Ifish/airkiss/JMAirKissConnection.m index 6c66872..cb4eb60 100644 --- a/Ifish/airkiss/JMAirKissConnection.m +++ b/Ifish/airkiss/JMAirKissConnection.m @@ -234,9 +234,9 @@ withFilterContext:(id)filterContext return; } NSString* serIp = [GCDAsyncUdpSocket hostFromAddress:address]; - NSLog(@"serIp=%@",serIp); + serIp= [serIp stringByReplacingOccurrencesOfString:@"::ffff:" withString:@""]; - + NSLog(@"serIp=%@,length=%ld",serIp,data.length); //uint16_t serPort = (int)[GCDAsyncUdpSocket portFromAddress:address]; if ([serIp isEqualToString:_localIP]) { diff --git a/Ifish/controllers/IfishTabControllers/设备/IfishDeviceSelectList/IfishBindDeviceSelectViewController.m b/Ifish/controllers/IfishTabControllers/设备/IfishDeviceSelectList/IfishBindDeviceSelectViewController.m index ebb2b3a..3a4cfa8 100644 --- a/Ifish/controllers/IfishTabControllers/设备/IfishDeviceSelectList/IfishBindDeviceSelectViewController.m +++ b/Ifish/controllers/IfishTabControllers/设备/IfishDeviceSelectList/IfishBindDeviceSelectViewController.m @@ -30,7 +30,7 @@ extern BOOL isfromCameraView; // Do any additional setup after loading the view. [self addTitleViewWithTitle:@"选择设备"]; [self creatTab]; - [self loginGWP2P]; + } -(void)viewDidAppear:(BOOL)animated{ @@ -131,6 +131,7 @@ extern BOOL isfromCameraView; // [self.view makeToast:@"设备已达上限"]; // return; // } + [self loginGWP2P]; if ( [GWP2PClient sharedClient].linkStatus==P2PLinkStatusOK) {