Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-07-31 10:39:39 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6539ce69f4e0f82344375525b0f4207c239b59ba
6539ce69
1 parent
f0ffdcc0
fix #141, support tun0(vpn network device) ip retrieve. 0.9.179.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
2 行增加
和
6 行删除
trunk/src/app/srs_app_utility.cpp
trunk/src/app/srs_app_utility.cpp
查看文件 @
6539ce6
...
...
@@ -930,15 +930,11 @@ void retrieve_local_ipv4_ips()
while
(
p
!=
NULL
)
{
sockaddr
*
addr
=
p
->
ifa_addr
;
// retrieve ipv4 addr
// ignore the tun0 network device,
// which addr is NULL.
// @see: https://github.com/winlinvip/simple-rtmp-server/issues/141
if
(
!
addr
)
{
continue
;
}
// retrieve ipv4 addr
if
(
addr
->
sa_family
==
AF_INET
)
{
if
(
addr
&&
addr
->
sa_family
==
AF_INET
)
{
in_addr
*
inaddr
=
&
((
sockaddr_in
*
)
addr
)
->
sin_addr
;
char
buf
[
16
];
...
...
请
注册
或
登录
后发表评论