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