mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add consts to kernel
This commit is contained in:
parent
24a041266c
commit
073d900674
13 changed files with 337 additions and 29 deletions
|
@ -111,7 +111,7 @@ int SrsForwarder::on_publish(SrsRequest* req, std::string forward_server)
|
|||
source_ep += req->vhost;
|
||||
|
||||
std::string dest_ep = "rtmp://";
|
||||
if (forward_server == "127.0.0.1") {
|
||||
if (forward_server == SRS_CONSTS_LOCALHOST) {
|
||||
dest_ep += req->host;
|
||||
} else {
|
||||
dest_ep += forward_server;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue