Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
jedi
smrtlink
Commits
5ff845e0
Commit
5ff845e0
authored
Jan 17, 2016
by
jedi
Browse files
some minor fixes
parents
06351d87
aa8af556
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Host.cpp
View file @
5ff845e0
...
...
@@ -57,6 +57,17 @@ ipAddr Host::getIp() {
return
data
;
}
}
/*
for (ifa = ifaddr, n = 0; ifa != NULL; ifa = ifa->ifa_next, n++) {
if (ifa->ifa_addr == NULL)
continue;
if (ifa->ifa_addr->sa_family == AF_INET)
if (getIface().compare(ifa->ifa_name) == 0) {
memcpy(&data[0], &ifa->ifa_addr->sa_data[2], 4);
return data;
}
}
*/
freeifaddrs
(
ifaddr
);
return
data
;
}
...
...
Write
Preview
Supports
Markdown
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