|
@@ -332,8 +332,8 @@ static connectDeviceManager *connectDeviceManagerInstance = nil;
|
|
|
self.tcpPortStr = [[NSString alloc] initWithFormat:@"%ld",self.tcpPort];
|
|
|
|
|
|
/// 5. 添加端口防火墙
|
|
|
- [RaylinkProxy.sharedManager addSdnId:sdnId allowPort:9300];
|
|
|
- [RaylinkProxy.sharedManager addSdnId:sdnId allowPort:9100];
|
|
|
+ [RaylinkProxy.sharedManager addSdnId:sdnId ip:ruiyunlinkIp allowPort:9300];
|
|
|
+ [RaylinkProxy.sharedManager addSdnId:sdnId ip:ruiyunlinkIp allowPort:9100];
|
|
|
|
|
|
[cachesFileManager writeLogsWithMsg:@"onProxyConnected connectToHost"];
|
|
|
|
|
@@ -439,8 +439,8 @@ static connectDeviceManager *connectDeviceManagerInstance = nil;
|
|
|
NSString *sdnId = self.DeviceThirdIdMod.data.sdnId;
|
|
|
self.tcpPort = [RaylinkProxy.sharedManager createHttpService:sdnId];
|
|
|
self.tcpPortStr = [[NSString alloc] initWithFormat:@"%ld",self.tcpPort];
|
|
|
- [RaylinkProxy.sharedManager addSdnId:sdnId allowPort:9300];
|
|
|
- [RaylinkProxy.sharedManager addSdnId:sdnId allowPort:9100];
|
|
|
+ [RaylinkProxy.sharedManager addSdnId:sdnId ip:ruiyunlinkIp allowPort:9300];
|
|
|
+ [RaylinkProxy.sharedManager addSdnId:sdnId ip:ruiyunlinkIp allowPort:9100];
|
|
|
|
|
|
}
|
|
|
|