Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mid-service
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
mid-service
Commits
37d8be12
Commit
37d8be12
authored
Jan 16, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改pom文件
parent
c7bffb9b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
src/main/java/com/mortals/xhx/daemon/applicationservice/CaptureStartedService.java
.../xhx/daemon/applicationservice/CaptureStartedService.java
+3
-7
No files found.
src/main/java/com/mortals/xhx/daemon/applicationservice/CaptureStartedService.java
View file @
37d8be12
...
...
@@ -41,8 +41,8 @@ public class CaptureStartedService implements IApplicationStartedService {
List
<
PcapNetworkInterface
>
allDevs
=
null
;
try
{
allDevs
=
Pcaps
.
findAllDevs
();
for
(
final
PcapNetworkInterface
device
:
allDevs
)
{
String
localHost
=
"127.0.0.1"
;
for
(
final
PcapNetworkInterface
device
:
allDevs
)
{
List
<
PcapAddress
>
addresses
=
device
.
getAddresses
();
Boolean
bool
=
false
;
String
ip
=
""
;
...
...
@@ -55,13 +55,9 @@ public class CaptureStartedService implements IApplicationStartedService {
ipv4
=
Validator
.
isIpv4
(
ip
);
log
.
info
(
"ip:{}, is ipv4:{}"
,
ip
,
ipv4
);
if
(
ip
!=
null
&&
ip
.
contains
(
localHost
))
{
bool
=
false
;
break
;
// 返回指定的设备对象
//return networkInterface;
continue
;
}
if
(
!
ipv4
)
{
if
(
ipv4
)
{
bool
=
true
;
break
;
}
...
...
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