正在显示
2 个修改的文件
包含
5 行增加
和
4 行删除
@@ -1104,8 +1104,8 @@ int SrsHttpServer::hijack(SrsHttpMessage* request, ISrsHttpHandler** ph) | @@ -1104,8 +1104,8 @@ int SrsHttpServer::hijack(SrsHttpMessage* request, ISrsHttpHandler** ph) | ||
1104 | int ret = ERROR_SUCCESS; | 1104 | int ret = ERROR_SUCCESS; |
1105 | 1105 | ||
1106 | // when handler not the root, we think the handler is ok. | 1106 | // when handler not the root, we think the handler is ok. |
1107 | - ISrsHttpHandler* h = ph? *ph : NULL; | ||
1108 | - if (h->entry && h->entry->pattern != "/") { | 1107 | + ISrsHttpHandler* h = *ph? *ph : NULL; |
1108 | + if (h && h->entry && h->entry->pattern != "/") { | ||
1109 | return ret; | 1109 | return ret; |
1110 | } | 1110 | } |
1111 | 1111 |
@@ -29,13 +29,14 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | @@ -29,13 +29,14 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
29 | */ | 29 | */ |
30 | 30 | ||
31 | // current release version | 31 | // current release version |
32 | -#define VERSION_MAJOR 2 | 32 | +#define VERSION_MAJOR 3 |
33 | #define VERSION_MINOR 0 | 33 | #define VERSION_MINOR 0 |
34 | +#define VERSION_REVISION 0 | ||
34 | #define VERSION_REVISION 143 | 35 | #define VERSION_REVISION 143 |
35 | 36 | ||
36 | // server info. | 37 | // server info. |
37 | #define RTMP_SIG_SRS_KEY "SRS" | 38 | #define RTMP_SIG_SRS_KEY "SRS" |
38 | -#define RTMP_SIG_SRS_CODE "ZhouGuowen" | 39 | +#define RTMP_SIG_SRS_CODE "OuXuli" |
39 | #define RTMP_SIG_SRS_ROLE "origin/edge server" | 40 | #define RTMP_SIG_SRS_ROLE "origin/edge server" |
40 | #define RTMP_SIG_SRS_NAME RTMP_SIG_SRS_KEY"(Simple RTMP Server)" | 41 | #define RTMP_SIG_SRS_NAME RTMP_SIG_SRS_KEY"(Simple RTMP Server)" |
41 | #define RTMP_SIG_SRS_URL_SHORT "github.com/winlinvip/simple-rtmp-server" | 42 | #define RTMP_SIG_SRS_URL_SHORT "github.com/winlinvip/simple-rtmp-server" |
-
请 注册 或 登录 后发表评论