Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.H2V
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘龙飞
VIZ.H2V
Commits
8c7fba49
Commit
8c7fba49
authored
Jan 05, 2023
by
liulongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IP获取错误问题
parent
597c6690
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
VIZ.H2V.Module/NDIView/Controller/Algorithm/AlgorithmControllerBase.cs
+5
-0
VIZ.H2V.Module/Setup/Provider/AppSetup_InitUDP.cs
+1
-0
No files found.
VIZ.H2V.Module/NDIView/Controller/Algorithm/AlgorithmControllerBase.cs
View file @
8c7fba49
...
...
@@ -439,6 +439,11 @@ namespace VIZ.H2V.Module
{
// 添加新的UDP管理器
string
clientIP
=
ApplicationDomainEx
.
IniStorage
.
GetValue
<
UdpConfig
,
string
>(
p
=>
p
.
UDP_BINDING_IP
);
// UDP本机绑定IP, 如果该值不配置,那么会获取本机的第一个IPV4地址
if
(
string
.
IsNullOrWhiteSpace
(
clientIP
))
{
clientIP
=
NetHelper
.
GetLocalFirstIPv4Address
();
}
string
streamIP
=
(
this
.
Support
.
ViewConfig
.
StreamAddress
??
string
.
Empty
).
Split
(
':'
).
FirstOrDefault
()?.
Trim
();
AlgorithmStrategy
strategy
=
ApplicationDomainEx
.
CsvContext
.
AlgorithmStrategys
.
FirstOrDefault
(
p
=>
p
.
Type
==
this
.
Support
.
ViewConfig
.
StrategyType
);
...
...
VIZ.H2V.Module/Setup/Provider/AppSetup_InitUDP.cs
View file @
8c7fba49
...
...
@@ -44,6 +44,7 @@ namespace VIZ.H2V.Module
// -----------------------------------------------------------------
// 客户端
string
clientIP
=
ApplicationDomainEx
.
IniStorage
.
GetValue
<
UdpConfig
,
string
>(
p
=>
p
.
UDP_BINDING_IP
);
// UDP本机绑定IP, 如果该值不配置,那么会获取本机的第一个IPV4地址
if
(
string
.
IsNullOrWhiteSpace
(
clientIP
))
{
clientIP
=
NetHelper
.
GetLocalFirstIPv4Address
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment