mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-30 06:42:22 +08:00
全面支持ipv6
This commit is contained in:
@@ -56,8 +56,10 @@ void RtspPusher::teardown() {
|
||||
|
||||
void RtspPusher::publish(const string &url_str) {
|
||||
RtspUrl url;
|
||||
if (!url.parse(url_str)) {
|
||||
onPublishResult_l(SockException(Err_other, StrPrinter << "illegal rtsp url:" << url_str), false);
|
||||
try {
|
||||
url.parse(url_str);
|
||||
} catch (std::exception &ex) {
|
||||
onPublishResult_l(SockException(Err_other, StrPrinter << "illegal rtsp url:" << ex.what()), false);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user