Browse Source

rPort 变更了HostAddres也要变

pull/375/head
ckb_test 3 years ago
committed by Gitee
parent
commit
6d454423a2
No known key found for this signature in database GPG Key ID: 173E9B9CA92EEF8F
  1. 1
      src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/notify/cmd/KeepaliveNotifyMessageHandler.java

1
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/notify/cmd/KeepaliveNotifyMessageHandler.java

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

Loading…
Cancel
Save