mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-26 18:30:47 +00:00
!8418 fix: 保存networkid
Merge pull request !8418 from liangjunhao/master
This commit is contained in:
commit
bb3c07fa4c
@ -322,6 +322,11 @@ static int32_t AcceptUdpChannelAsServer(AppInfo *appInfo)
|
||||
ReleaseUdpChannelId(appInfo->myData.channelId);
|
||||
return udpPort;
|
||||
}
|
||||
int32_t ret = LnnGetNetworkIdByUuid(
|
||||
(const char *)appInfo->peerData.deviceId, appInfo->peerNetWorkId, DEVICE_ID_SIZE_MAX);
|
||||
if (ret != SOFTBUS_OK) {
|
||||
TRANS_LOGE(TRANS_CTRL, "get network id by uuid failed.");
|
||||
}
|
||||
appInfo->myData.port = udpPort;
|
||||
UdpChannelInfo *newChannel = NewUdpChannelByAppInfo(appInfo);
|
||||
if (newChannel == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user