flowerwrong

Add tcUrl to on_publish http hook for issue #548

@@ -138,6 +138,7 @@ int SrsHttpHooks::on_publish(string url, SrsRequest* req) @@ -138,6 +138,7 @@ int SrsHttpHooks::on_publish(string url, SrsRequest* req)
138 << SRS_JFIELD_STR("ip", req->ip) << SRS_JFIELD_CONT 138 << SRS_JFIELD_STR("ip", req->ip) << SRS_JFIELD_CONT
139 << SRS_JFIELD_STR("vhost", req->vhost) << SRS_JFIELD_CONT 139 << SRS_JFIELD_STR("vhost", req->vhost) << SRS_JFIELD_CONT
140 << SRS_JFIELD_STR("app", req->app) << SRS_JFIELD_CONT 140 << SRS_JFIELD_STR("app", req->app) << SRS_JFIELD_CONT
  141 + << SRS_JFIELD_STR("tcUrl", req->tcUrl) << SRS_JFIELD_CONT // Add tcUrl for auth publish rtmp stream client
141 << SRS_JFIELD_STR("stream", req->stream) 142 << SRS_JFIELD_STR("stream", req->stream)
142 << SRS_JOBJECT_END; 143 << SRS_JOBJECT_END;
143 144