优化自动获取stream ip

pull/894/head
648540858 2023-06-25 13:49:07 +08:00
parent 155838ce2e
commit f306937616
3 changed files with 3 additions and 3 deletions

View File

@ -125,7 +125,7 @@ public class PlayController {
if (data != null) { if (data != null) {
StreamInfo streamInfo = (StreamInfo)data; StreamInfo streamInfo = (StreamInfo)data;
if (userSetting.getUseSourceIpAsStreamIp()) { if (userSetting.getUseSourceIpAsStreamIp()) {
streamInfo.channgeStreamIp(request.getLocalName()); streamInfo.channgeStreamIp(request.getLocalAddr());
} }
wvpResult.setData(new StreamContent(streamInfo)); wvpResult.setData(new StreamContent(streamInfo));
} }

View File

@ -107,7 +107,7 @@ public class PlaybackController {
if (data != null) { if (data != null) {
StreamInfo streamInfo = (StreamInfo)data; StreamInfo streamInfo = (StreamInfo)data;
if (userSetting.getUseSourceIpAsStreamIp()) { if (userSetting.getUseSourceIpAsStreamIp()) {
streamInfo.channgeStreamIp(request.getLocalName()); streamInfo.channgeStreamIp(request.getLocalAddr());
} }
wvpResult.setData(new StreamContent(streamInfo)); wvpResult.setData(new StreamContent(streamInfo));
} }

View File

@ -149,7 +149,7 @@ public class GBRecordController {
if (data != null) { if (data != null) {
StreamInfo streamInfo = (StreamInfo)data; StreamInfo streamInfo = (StreamInfo)data;
if (userSetting.getUseSourceIpAsStreamIp()) { if (userSetting.getUseSourceIpAsStreamIp()) {
streamInfo.channgeStreamIp(request.getLocalName()); streamInfo.channgeStreamIp(request.getLocalAddr());
} }
wvpResult.setData(new StreamContent(streamInfo)); wvpResult.setData(new StreamContent(streamInfo));
} }