正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -245,6 +245,7 @@ int SrsRtmpConn::service_cycle() | @@ -245,6 +245,7 @@ int SrsRtmpConn::service_cycle() | ||
| 245 | } | 245 | } |
| 246 | 246 | ||
| 247 | // do token traverse before serve it. | 247 | // do token traverse before serve it. |
| 248 | + // @see https://github.com/winlinvip/simple-rtmp-server/pull/239 | ||
| 248 | bool vhost_is_edge = _srs_config->get_vhost_is_edge(req->vhost); | 249 | bool vhost_is_edge = _srs_config->get_vhost_is_edge(req->vhost); |
| 249 | bool edge_traverse = _srs_config->get_vhost_edge_token_traverse(req->vhost); | 250 | bool edge_traverse = _srs_config->get_vhost_edge_token_traverse(req->vhost); |
| 250 | if (vhost_is_edge && edge_traverse) { | 251 | if (vhost_is_edge && edge_traverse) { |
| @@ -254,6 +255,7 @@ int SrsRtmpConn::service_cycle() | @@ -254,6 +255,7 @@ int SrsRtmpConn::service_cycle() | ||
| 254 | } | 255 | } |
| 255 | } | 256 | } |
| 256 | 257 | ||
| 258 | + // response the client connect ok. | ||
| 257 | if ((ret = rtmp->response_connect_app(req, local_ip.c_str())) != ERROR_SUCCESS) { | 259 | if ((ret = rtmp->response_connect_app(req, local_ip.c_str())) != ERROR_SUCCESS) { |
| 258 | srs_error("response connect app failed. ret=%d", ret); | 260 | srs_error("response connect app failed. ret=%d", ret); |
| 259 | return ret; | 261 | return ret; |
-
请 注册 或 登录 后发表评论