mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
synced 2025-11-05 05:08:06 +00:00
Support both internal and external rttys
This commit is contained in:
@@ -730,7 +730,7 @@ void RESTAPI_device_commandHandler::MakeRequest() {
|
||||
};
|
||||
|
||||
if(RTTYS_server()->UseInternal()) {
|
||||
Rtty.Token = MicroService::instance().CreateHash(UserInfo_.webtoken.refresh_token_ + std::to_string(std::time(nullptr))).substr(0,32);
|
||||
Rtty.Token = MicroService::instance().CreateHash(UserInfo_.webtoken.refresh_token_ + std::to_string(std::time(nullptr))).substr(0,30);
|
||||
RTTYS_server()->CreateEndPoint(Rtty.ConnectionId,Rtty.Token);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user