摄像头登录代码点击才会登录

This commit is contained in:
祝发冬
2023-08-27 23:37:12 +08:00
parent 8ec73c1dcb
commit 347226bd3e
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -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]) {