rPort 变更了HostAddres也要变

This commit is contained in:
ckb_test 2022-02-28 09:07:02 +00:00 committed by Gitee
parent 7400ace65d
commit 6d454423a2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -68,6 +68,7 @@ public class KeepaliveNotifyMessageHandler extends SIPRequestProcessorParent imp
}
if (device.getPort() != rPort) {
device.setPort(rPort);
device.setHostAddress(received.concat(":").concat(String.valueOf(rPort)));
videoManagerStorager.updateDevice(device);
redisCatchStorage.updateDevice(device);
}