Commit f306937616868d50ca5d996dcec9fcf1140c512c
1 parent
155838ce
优化自动获取stream ip
Showing
3 changed files
with
3 additions
and
3 deletions
src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/play/PlayController.java
| ... | ... | @@ -125,7 +125,7 @@ public class PlayController { |
| 125 | 125 | if (data != null) { |
| 126 | 126 | StreamInfo streamInfo = (StreamInfo)data; |
| 127 | 127 | if (userSetting.getUseSourceIpAsStreamIp()) { |
| 128 | - streamInfo.channgeStreamIp(request.getLocalName()); | |
| 128 | + streamInfo.channgeStreamIp(request.getLocalAddr()); | |
| 129 | 129 | } |
| 130 | 130 | wvpResult.setData(new StreamContent(streamInfo)); |
| 131 | 131 | } | ... | ... |
src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/playback/PlaybackController.java
| ... | ... | @@ -107,7 +107,7 @@ public class PlaybackController { |
| 107 | 107 | if (data != null) { |
| 108 | 108 | StreamInfo streamInfo = (StreamInfo)data; |
| 109 | 109 | if (userSetting.getUseSourceIpAsStreamIp()) { |
| 110 | - streamInfo.channgeStreamIp(request.getLocalName()); | |
| 110 | + streamInfo.channgeStreamIp(request.getLocalAddr()); | |
| 111 | 111 | } |
| 112 | 112 | wvpResult.setData(new StreamContent(streamInfo)); |
| 113 | 113 | } | ... | ... |
src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/record/GBRecordController.java
| ... | ... | @@ -149,7 +149,7 @@ public class GBRecordController { |
| 149 | 149 | if (data != null) { |
| 150 | 150 | StreamInfo streamInfo = (StreamInfo)data; |
| 151 | 151 | if (userSetting.getUseSourceIpAsStreamIp()) { |
| 152 | - streamInfo.channgeStreamIp(request.getLocalName()); | |
| 152 | + streamInfo.channgeStreamIp(request.getLocalAddr()); | |
| 153 | 153 | } |
| 154 | 154 | wvpResult.setData(new StreamContent(streamInfo)); |
| 155 | 155 | } | ... | ... |