mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
完善ipv6支持
This commit is contained in:
parent
c14bf7d8b1
commit
a95bf960e0
@ -514,7 +514,7 @@ void MediaInfo::parse(const string &url_in){
|
||||
} else {
|
||||
_host = _vhost = vhost;
|
||||
}
|
||||
if (_vhost == "localhost" || INADDR_NONE != inet_addr(_vhost.data())) {
|
||||
if (_vhost == "localhost" || isIP(_vhost.data())) {
|
||||
//如果访问的是localhost或ip,那么则为默认虚拟主机
|
||||
_vhost = DEFAULT_VHOST;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user