Commit f306937616868d50ca5d996dcec9fcf1140c512c

Authored by 648540858
1 parent 155838ce

优化自动获取stream ip

src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/play/PlayController.java
@@ -125,7 +125,7 @@ public class PlayController { @@ -125,7 +125,7 @@ public class PlayController {
125 if (data != null) { 125 if (data != null) {
126 StreamInfo streamInfo = (StreamInfo)data; 126 StreamInfo streamInfo = (StreamInfo)data;
127 if (userSetting.getUseSourceIpAsStreamIp()) { 127 if (userSetting.getUseSourceIpAsStreamIp()) {
128 - streamInfo.channgeStreamIp(request.getLocalName()); 128 + streamInfo.channgeStreamIp(request.getLocalAddr());
129 } 129 }
130 wvpResult.setData(new StreamContent(streamInfo)); 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,7 +107,7 @@ public class PlaybackController {
107 if (data != null) { 107 if (data != null) {
108 StreamInfo streamInfo = (StreamInfo)data; 108 StreamInfo streamInfo = (StreamInfo)data;
109 if (userSetting.getUseSourceIpAsStreamIp()) { 109 if (userSetting.getUseSourceIpAsStreamIp()) {
110 - streamInfo.channgeStreamIp(request.getLocalName()); 110 + streamInfo.channgeStreamIp(request.getLocalAddr());
111 } 111 }
112 wvpResult.setData(new StreamContent(streamInfo)); 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,7 +149,7 @@ public class GBRecordController {
149 if (data != null) { 149 if (data != null) {
150 StreamInfo streamInfo = (StreamInfo)data; 150 StreamInfo streamInfo = (StreamInfo)data;
151 if (userSetting.getUseSourceIpAsStreamIp()) { 151 if (userSetting.getUseSourceIpAsStreamIp()) {
152 - streamInfo.channgeStreamIp(request.getLocalName()); 152 + streamInfo.channgeStreamIp(request.getLocalAddr());
153 } 153 }
154 wvpResult.setData(new StreamContent(streamInfo)); 154 wvpResult.setData(new StreamContent(streamInfo));
155 } 155 }